Top "Format" questions

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

Convert milliseconds to human readable time lapse

I would like to format some commands execution times in a human readable format, for example: 3 -> 3ms 1100 -&…

c# .net format timespan
How to do string formatting with placeholders in Java (like in Python)?

I am new to Java and am from Python. In Python we do string formatting like this: >>> …

java python string format placeholder
Need to format dates in dynamically built WPF DataGrid

We are binding an unknown result set to a WPF DataGrid at run time. Some of our columns are going …

wpf datetime datagrid format
How to convert a String containing Scientific Notation to correct Javascript number format

I have a String e.g: "4.874915326E7". What is the best way to convert it to a javascript number format? (…

javascript string numbers format
How to format Double with dot?

How do I format a Double with String.format to String with a dot between the integer and decimal part? …

java string format double
What's the best way to format a phone number in Python?

If all I have is a string of 10 or more digits, how can I format this as a phone number? …

python formatting format standards libs
How can I format a timestamp in Perl?

I would like to get this timestamps formatting: 01/13/2010 20:42:03 - - Where it's always 2 digits for the number except for the …

perl time format timestamp clock
Django: How to format a DateField's date representation?

I have a form with a DateField. The existing date value is formatted to render like this: 2009-10-03 How …

django localization formatting format datefield
How do I save an Excel file without getting a format warning when opening, using C# and Excel 2010

I'm using Excel 2010. I'm trying so save my excel file, with this code. It does save a .xls file, but …

c# visual-studio-2010 excel format savefiledialog
python xlwt set custom background colour of a cell

I am using python 2.7 and xlwt module for excel export I would like to set backgroung colour of a cell …

python excel format xlwt