Date format

This is all posible symbols to use in date format. View example below.

Symbol Meaning Presentation Example
D day in year (Number) 189
E day of week (Text) Tuesday
F day of week in month (Number) 2 (2nd Wed in July)
G era designator (Text) AD
H hour in day (0-23) (Number) 0
K hour in am/pm (0-11) (Number) 0
L stand-alone month (Text/Number) July / 07
M month in year (Text/Number) July / 07
S fractional seconds (Number) 978
W week in month (Number) 2
Z time zone (RFC 822) (Timezone) -0800
a am/pm marker (Text) PM
c stand-alone day of week (Text/Number) Tuesday / 2
d day in month (Number) 10
h hour in am/pm (1-12) (Number) 12
k hour in day (1-24) (Number) 24
m minute in hour (Number) 30
s second in minute (Number) 55
w week in year (Number) 27
y year (Number) 2010
z time zone (Timezone) Pacific Standard Time
' escape for text (Delimiter) ‘Date=’
'' single quote (Literal) ‘o”clock’

Examples for April 6, 1970 at 3:23am:
“MM/dd/yy h:mmaa” -> “04/06/70 3:23am”
“MMM dd, yyyy h:mmaa” -> “Apr 6, 1970 3:23am”
“MMMM dd, yyyy h:mmaa” -> “April 6, 1970 3:23am”
“E, MMMM dd, yyyy h:mmaa” -> “Mon, April 6, 1970 3:23am&
“EEEE, MMMM dd, yyyy h:mmaa” -> “Monday, April 6, 1970 3:23am”
“‘Noteworthy day: ‘M/d/yy” -> “Noteworthy day: 4/6/70”