Top "Formatting" questions

The process of transforming text or data for presentation.

PHP convert date format dd/mm/yyyy => yyyy-mm-dd

I am trying to convert a date from dd/mm/yyyy => yyyy-mm-dd. I have using the mktime() function and …

php date formatting mktime
Format number to 2 decimal places

I would like to know how can I output a number with 2 decimal places, without rounding the original number. For …

mysql formatting decimal
How to change indentation in Visual Studio Code?

For every typescript file visual studio code uses an auto indentation of 8 spaces. This is a bit too much for …

formatting visual-studio-code
Convert Date/Time for given Timezone - java

I want to convert this GMT time stamp to GMT+13: 2011-10-06 03:35:05 I have tried about 100 different combinations of DateFormat, …

java datetime formatting timezone timestamp
Format SQL in SQL Server Management Studio

In Visual Studio & other IDEs, you can easily auto format your code with a keyboard shortcut, through the menu, …

sql-server formatting ssms
How to format a Java string with leading zero?

Here is the String, for example: "Apple" and I would like to add zero to fill in 8 chars: "000Apple" How …

java string formatting format
How to escape braces (curly brackets) in a format string in .NET

How can brackets be escaped in using string.Format. For example: String val = "1,2,3" String.Format(" foo {{0}}", val); This example doesn't …

c# .net string parsing formatting
How do I keep Python print from adding newlines or spaces?

In python, if I say print 'h' I get the letter h and a newline. If I say print 'h', …

python printing formatting python-2.x
How to disable scientific notation?

I have a dataframe with a column of p-values and I want to make a selection on these p-values. > …

r formatting scientific-notation
Add alternating row color to SQL Server Reporting services report

How do you shade alternating rows in a SQL Server Reporting Services report? Edit: There are a bunch of good …

sql-server reporting-services formatting