Symbol |
Meaning |
Type |
Example |
---|---|---|---|
G |
Era |
Text |
"GG" -> "AD" |
y |
Year |
Number |
"yy" -> "03" |
M |
Month |
Text or Number |
"M" -> "7" |
d |
Day in month |
Number |
"d" -> "3" |
h |
Hour (1-12, AM/PM) |
Number |
"h" -> "3" |
H |
Hour (0-23) |
Number |
"H" -> "15" |
k |
Hour (1-24) |
Number |
"k" -> "3" |
K |
Hour (0-11 AM/PM) |
Number |
"K" -> "15" |
m |
Minute |
Number |
"m" -> "7" |
s |
Second |
Number |
"s" -> "15" |
S |
Millisecond (0-999) |
Number |
"SSS" -> "007" |
E |
Day in week |
Text |
"EEE" -> "Tue" |
D |
Day in year (1-365 or 1-364) |
Number |
"D" -> "65" |
F |
Day of week in month (1-5) |
Number |
"F" -> "1" |
w |
Week in year (1-53) |
Number |
"w" -> "7" |
W |
Week in month (1-5) |
Number |
"W" -> "3" |
a |
AM/PM |
Text |
"a" -> "AM" |
z |
Time zone |
Text |
"z" -> "EST" |
' |
Escape for text |
Delimiter |
"'hour' h" -> "hour 9" |
'' |
Single quote |
Literal |
"ss''SSS" -> "45'876" |
Manage space
Manage content
Integrations