Skip to main content

Date Formating

Date Formatting Tokens#

The Formatter is not case-sensitive and accepts either lower-case or upper-case characters. Both dd and DD, will work perfectly fine.

CodeDescriptionExample
dDay of the month, 1 digit without leading zeros5
ddDay of the month, 2 digits with leading zeros05
dddA sort textual representation of a dayMon
ddddA full textual representation of a dayMonday
mNumeric representation of a month, without leading zeros1
mmNumeric representation of a month, with leading zero01
mmmA short textual representation of a monthJan
mmmmA full textual representation of a monthJanuary
yyA two digit representation of a year92
yyyyA full numeric representation of a year, 4 digits1992



Separator Tokens#

CodeGlyphDescriptionExample
(U+002E).Full Stopdd.mm.yy
(U+002D)-Hyphen-minusdd-mm-yy
(U+002C),Commadd,mm,yy
(U+0020) Spacedd mm yy
(U+002C) + (U+0020) , Comma + Spacedddd, dd, mm, yy