Sunday, November 23, 2008

Possible Tokens in the Calendar Format String

Possible Tokens in the Calendar Format String
SymbolMeaning
%yYear without century (00–99)
%YYear with century ("1990")
%bAbbreviated month name ("Jan")
%BFull month name ("January")
%mMonth as a decimal number (01–12)
%aAbbreviated weekday name ("Fri")
%AFull weekday name ("Friday")
%wWeekday as a decimal number (0–6), where Sunday is 0
%dDay of the month as a decimal number (01–31)
%eSame as %d but does not print the leading 0
%jDay of the year as a decimal number (001–366)
%HHour based on a 24-hour clock as a decimal number (00–23)
%IHour based on a 12-hour clock as a decimal number (01–12)
%pA.M./P.M. designation for the locale
%MMinute as a decimal number (00–59)
%SSecond as a decimal number (00–59)
%FMilliseconds as a decimal number (000–999)
%xDate using the date representation for the locale
%XTime using the time representation for the locale
%cShorthand for %X %x, the locale format for date and time
%ZTime zone name
%zTime zone offset in hours and minutes from GMT (HHMM)
%%A % character

No comments: