Date/Time Format

DateTimePattern is specified by date and time pattern strings. Within date and time pattern strings, the following unquoted letters are interpreted as pattern letters representing the components of a date or time string:

Letter  Description
GEra designator - AD|BC
yYear - two or four digits
M Month in year - If the number of pattern letters is 3 or more, the month is interpreted as text; otherwise, it is interpreted as a number
wWeek in year
WWeek in month
D Day in year
d Day in month
FDay of week in month
EDay in week
aAm/pm
H Hour in day (0-23)
k Hour in day (1-24)
KHour in am/pm (0-11)
h Hour in am/pm (1-12)
mMinute in hour
s Second in minute

For the detailed description of the pattern symbols please see java.text.SimpleDateFormat.