Date formats
 Share
The version of the browser you are using is no longer supported. Please upgrade to a supported browser.Dismiss

 
View only
 
 
ABCDEFGHIJKLMNOPQRSTUVW
1
Field TypeFormatExample ValueCLDRAngularJSAngular v4Angular v5MomentJS
2
EraabbreviatedADG..GGGG..GGGGG..GGGG..GGG
3
wideAnno DominiGGGGGGGGGGGGGGGG
4
narrowAGGGGGGGGGGG
5
Yearnumeric: minimum digits2, 20, 201, 2017, 20173yyyyY
6
numeric: 2 digits + zero padded02, 20, 01, 17, 73yyyyyyyyYY
7
numeric: 3 digits + zero padded002, 020, 201, 2017, 20173yyyyyy
8
numeric: 4 digits or more + zero padded0002, 0020, 0201, 2017, 20173yyyyyyyyyyyyyyyyYYYY
9
numeric: x digits or more + zero padded...yyyyy+
10
Year in “Week of Year” based calendarsnumeric: minimum digits2, 20, 201, 2017, 20173Y
11
numeric: 2 digits + zero padded02, 20, 01, 17, 73YYgg
12
numeric: 3 digits + zero padded002, 020, 201, 2017, 20173YYY
13
numeric: 4 digits or more + zero padded0002, 0020, 0201, 2017, 20173YYYYgggg
14
numeric: x digits or more + zero padded...YYYYY+
15
numeric: 2 digits + zero padded, ISOGG
16
numeric: 4 digits or more + zero padded, ISOGGGG
17
Year extended4601u+
18
Cyclic yearabbreviated甲子U..UUU
19
wide甲子 (for now)UUUU
20
narrow甲子 (for now)UUUUU
21
Gregorian year2017r+
22
Quarternumeric 1 digit2QQ
23
numeric: 2 digits + zero padded2QQ
24
abbreviatedQ2QQQ
25
wide2nd quarterQQQQQo
26
narrow2QQQQQ
27
Quarter standalonenumeric 1 digit2q
28
numeric: 2 digits + zero padded2qq
29
abbreviatedQ2qqq
30
wide2nd quarterqqqq
31
narrow2qqqqq
32
Monthnumeric 1 digit9, 12MMMMM
33
numeric: 2 digits + zero padded09, 12MMMMMMMMMM
34
abbreviatedSepMMMMMMMMMMMMMMM
35
wideSeptemberMMMMMMMMMMMMMMMMMMMM
36
narrowSMMMMMLMMMMM
37
position1st 2nd ... 11th 12th
Mo
38
Month standalonenumeric 1 digit9, 12LL
39
numeric: 2 digits + zero padded09, 12LLLL
40
abbreviatedSepLLLLLL
41
wideSeptemberLLLLLLLLLLLLLLLL
42
narrowSLLLLLLLLLL
43
Symbol for leap month in the Chinese calendar(nothing, deprecated)(nothing, deprecated)l
44
Week of yearnumeric: minimum digits1 ... 53wwww
45
numeric: 2 digits + zero padded01 ... 53wwwwwwww
46
position1st, ... 53rdwo
47
numeric: minimum digits, ISO1 ... 53W
48
numeric: 2 digits + zero padded, ISO01 ... 53WW
49
position ISO1st, ... 53rdWo
50
Week of monthnumeric: 1 digit1 ... 5WW
51
Day of monthnumeric: minimum digits1ddddD
52
numeric: 2 digits + zero padded1ddddddddDD
53
position1st, 2nd, ... 31stDo
54
Day of yearnumeric: minimum digits1, 2, ... 365DDDD
55
numeric: day of year + zero padded01, 02, ... 365DD...DDDDDDD
56
position1st, 2nd, ... 365thDDDo
57
Julian daynumeric: modified julian day2451334g+
58
Week daynumeric: minimum digits0 ... 6d
59
abbreviatedTueE..EEEEEEEE..EEEE..EEEddd
60
wideTuesdayEEEEEEEEEEEEEEEEdddd
61
narrowTEEEEEEEEEEE
62
shortTuEEEEEEEEEEEEdd
63
position0th, 1st, ... 6thdo
64
Week day in monthnumeric (eg: 2nd wednesday of July)2F
65
Local week day (depends on the local starting day of the week)numeric: 1 digit0... 6ee
66
numeric: 2 digits + zero padded00... 06ee
67
abbreviatedTueeee
68
wideTuesdayeeee
69
narrowTeeeee
70
shortTueeeeee
71
ISO week daynumeric: minimum digits1... 7E
72
Standalone local week daynumeric: 1 digit2c..cc
73
abbreviatedTueccc
74
wideTuesdaycccc
75
narrowTccccc
76
shortTucccccc
77
Period AM/PMabbreviatedam/pm or AM/PMa..aaaa..aaa
78
abbreviatedam/pma
79
abbreviatedAM/PMaaA
80
wide (fallback to a..aaa)ante meridiem/post meridiemaaaaaaaa
81
narrowa/paaaaaaaaaa
82
Period standaloneabbreviatedmid.b..bbbb..bbb
83
wideam, pm, midnight, noon, morning, afternoon, evening, nightbbbbbbbb
84
narrowmdbbbbbbbbbb
85
Periodabbreviatedmid.B..BBBB..BBB
86
wideam, pm, midnight, noon, morning, afternoon, evening, nightBBBBBBBB
87
narrowmdBBBBBBBBBB
88
Hour 1-12numeric: minimum digits1, 12hhhhh
89
numeric: 2 digits + zero padded01, 12hhhhhhhhhh
90
Hour 0-23numeric: minimum digits0, 23HHHHH
91
numeric: 2 digits + zero padded00, 23HHHHHHHHHH
92
Hour 0-11numeric: minimum digits0, 11K
93
numeric: 2 digits + zero padded00, 11KK
94
Hour 1-24numeric: minimum digits1, 24kk
95
numeric: 2 digits + zero padded01, 24kkkk
96
Hour input skeleton symbol, replace with h/H/k/K, dayPeriod if needednumeric: minimum digits, abbreviated dayPeriod if used8
8 AM
13
1 PM
j
97
numeric: 2 digits + zero padded, abbreviated dayPeriod if used08
08 AM
13
01 PM
jj
98
numeric: minimum digits, wide dayPeriod if used8
8 A.M.
13
1 P.M.
jjj
99
numeric: 2 digits + zero padded, wide dayPeriod if used08
08 A.M.
13
01 P.M.
jjjj
100
numeric: minimum digits, narrow dayPeriod if used8
8a
13
1p
jjjjj
Loading...
Main menu