Date & Time Formatting Strings


yyyyfour digit year
yytwo digit year
MMMMfull month name
MMMabbreviated month name
MMalways two digit month number
Mone or two digit month number
ddddfull day of week name
dddabbreviated day of week name
ddalways two digit day number
done or two digit day number
kwGerman "Kalender Woche" (week number)
mjdmodified Julian day number
HHalways two digit 24 hour
Hone or two digit 24 hour
hhalways two digit 12 hour
hone or two digit 12 hour
mmalways two digit minute
mone or two digit minute
ssalways two digit second
sone or two digit second
ttmorning or afternoon marker (AM or PM in English)
xxxxxxxseven decimal fractional seconds
xxxxxxsix decimal fractional seconds
xxxxxfive decimal fractional seconds
xxxxfour decimal fractional seconds
xxxthree decimal fractional seconds
xxtwo decimal fractional seconds
xone decimal fractional seconds
zzzzfull time zone name
zzzabbreviated time zone name
+zzzzalways four digit time zone offset from UTC with plus or minus sign
+zzalways two digit time zone offset from UTC with plus or minus sign
+zone or two digit time zone offset from UTC with plus or minus sign