Top "Format" questions

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

Format number as fixed width, with leading zeros

The following code a <- seq(1,101,25) b <- paste("name", 1:length(a), sep = "_") produces this output: "name_1" "name_26" "…

r format printf
sas date - convert today() into yyyymmdd format

How do I convert a SAS date such as "30JUL2009"d into YYYYMMDD format (eg 20090730)? So for instance: data _null_; …

date format sas
How do you specify the date format used when JAXB marshals xsd:dateTime?

When JAXB marshals a date object (XMLGregorianCalendar) into an xsd:dateTime element. How can you specify the format of the …

datetime jaxb format marshalling milliseconds
Why doesn't C have unsigned floats?

I know, the question seems to be strange. Programmers sometimes think too much. Please read on... In C I use …

c types floating-point format unsigned
Python way of printing: with 'format' or percent form?

In Python there seem to be two different ways of generating formatted output: user = "Alex" number = 38746 print("%s asked %d …

python printing format
How do I format a C# decimal to remove extra following 0's?

I want to format a string as a decimal, but the decimal contains some following zeros after the decimal. How …

c# format decimal tostring
How can I set a DateField format in django from the model?

I am creating a django application and I have the next problem: this error is shown when I want to …

python django format datefield
How to convert Milliseconds to date format in C#?

In C# how can I convert Unix-style timestamp to yyyy-MM-ddThh:mm:ssZ?

c# datetime format milliseconds
printf string, variable length item

#define SIZE 9 int number=5; char letters[SIZE]; /* this wont be null-terminated */ ... char fmt_string[20]; sprintf(fmt_string, "%%d %%%ds", SIZE); /* …

c format printf
How to get the given date string format(pattern) in java?

I want to get the format of a given date string. Example: I have a string like 2011-09-27T07:04:21.97…

java date format