Calendar Wiki
Advertisement
Deprecated truncated formats with digits code and alternatives
Format Sample Hyphens Implied field(s) Alternative Wildcards
-YY -2 -24 1 century none XXYY, +XXXYY, –XXXYY, …
--MM --2 --07 2 year -MM XXXXMM, *MM, *-MM, …
---DD ---2 ---24 3 month --DD **DD, *-*-DD, -XX-DD, XXXX-XX-DD, …
-DDD -3 -206 1* year same, DDD *-DDD, *DDD, XXXXDDD, …
-WWW -W2 -W30 1 year same, WWW *-WWW, *WWW, XXXX-WWW, …
-W-D -W-1 -W-3 2×1 week same -WXX-D, *W*D, …
---D ---1 ---3 3 any week --D, D **D, *-*-D, …
-Y-WWW -1-W2 -4-W30 2×1 decade none XXXY-WWW, …
-YWWW -1W2 -4W30 1 decade none XXXYWWW, …
-mm -2 T-25 1 hour :mm T*mm, *:mm, T*:mm, XX:mm, TXX:mm
--ss --2 T--12 2 minute ::ss T**ss, *:*:ss, :*:ss, …
Existing formats with digits code
level of detail full date sample
c CC 2 2024
y CCYY −4 N/A
+CCYY +4 +2024
 CCYY 4 2024
d/y ±CCYY-DDD ±4-3 2024-205
 CCYYDDD 7 2024205
m/y ±CCYY-MM ±4-2 2024-07
invalid
d/m/y ±CCYY-MM-DD ±4-2-2 2024-07-24
 CCYYMMDD 8 20240724
w/y ±CCYY-WWW ±4-W2 2024-W30
±CCYYWWW ±4W2 2024W30
d/w/y ±CCYY-WWW-D ±4-W2-1 2024-W30-3
±CCYYWWWD ±4W3 2024W303
Advertisement