Top "Format" questions

It may refer to text formatting, content format, file format, document file format, etc.

How can I print literal curly-brace characters in python string and also use .format on it?

x = " \{ Hello \} {0} " print(x.format(42)) gives me : Key Error: Hello\\ I want to print the output: {Hello} 42

python string format string-formatting curly-braces
How to set date format in HTML date input tag?

I am wondering whether it is possible to set the date format in the html <input type="date">&…

html date input format
Android TextView Justify Text

How do you get the text of a TextView to be Justified (with text flush on the left- and right- …

android text format textview justify
How do you display JavaScript datetime in 12 hour AM/PM format?

How do you display a JavaScript datetime object in the 12 hour format (AM/PM)?

javascript datetime date time format
What is this date format? 2011-08-12T20:17:46.384Z

I have the following date: 2011-08-12T20:17:46.384Z. What format is this? I'm trying to parse it with Java 1.4 …

java date time format simpledateformat
Format numbers in JavaScript similar to C#

Is there a simple way to format numbers in JavaScript, similar to the formatting methods available in C# (or VB.…

javascript jquery format numbers
Mysql: Setup the format of DATETIME to 'DD-MM-YYYY HH:MM:SS' when creating a table

After googling around, I cannot find a way to create a new table with a DATETIME column with the default …

mysql datetime command-line format create-table
Format Float to n decimal places

I need to format a float to "n"decimal places. was trying to BigDecimal, but the return value is not …

java android floating-point numbers format
Current time formatting with Javascript

I want to get current time in a specific format with javascript. With the function below and calling it will …

javascript date time format
How to parse date string to Date?

How do I parse the date string below into a Date object? String target = "Thu Sep 28 20:29:30 JST 2000"; DateFormat df = new …

java date format