Top "Formatting" questions

The process of transforming text or data for presentation.

How can I pad an integer with zeros on the left?

How do you left pad an int with zeros when converting to a String in java? I'm basically looking to …

java formatting zero-pad
How to format date and time in Android?

How to format correctly according to the device configuration date and time when having a year, month, day, hour and …

android date time formatting format
SQL Server Convert Varchar to Datetime

I have this date format: 2011-09-28 18:01:00 (in varchar), and I want to convert it to datetime changing to this …

sql sql-server datetime formatting varchar
Formatting Decimal places in R

I have a number, for example 1.128347132904321674821 that I would like to show as only two decimal places when output to …

r formatting rounding r-faq
Pad a number with leading zeros in JavaScript

In JavaScript, I need to have padding. For example, if I have the number 9, it will be "0009". If I have …

javascript formatting
How do I change Eclipse to use spaces instead of tabs?

By default Eclipse indents with a hard tab character. How do I change it to spaces?

eclipse formatting tabs whitespace
Double decimal formatting in Java

I'm having some problems formatting the decimals of a double. If I have a double value, e.g. 4.0, how do …

java formatting double decimal
C# convert int to string with padding zeros?

In C# I have an integer value which need to be convereted to string but it needs to add zeros …

c# formatting number-formatting