Symbol Description
a AM or PM
d Day of month (1-31)
h Hour in AM/PM (1-12)
k Hour in day (1-24)
m Minute in hour (0-59)
s Second in minute (0-59)
w Week of year (1-52)
y Year
z Time zone
D Day of year (1-366)
E Day of week (for example, Thursday)
F Day of week in month
G Era (that is, AD or BC)
H Hour in day (0-23)
K Hour in AM/PM (0-11)
M Month
S Millisecond in second
W Week of month (1-5)
Z Time zone in RFC822 format