Wijmo UI for the Web
Date Format Keywords
Wijmo User Guide > Concepts > Format Function Library > Date Format Keywords

The following table lists supported date format keywords that you can use with the Format, Validation, and Parsing Function Libraries.

Keyword Description
e Display the nengo year as a single digit number when possible (1-??).
ee Display the nengo year as a double digit number when possible (01-??).
eee (plus any number of additional e characters) Treated the same as ee.
d Display the day as a number without a leading zero (1 - 31).
dd Display the day as a number with a leading zero (01 - 31).
ddd Display the day defined by the DateTimeFormatInfo.AbbreviatedDayNames() property associated with the current thread or by a specified format provider.
dddd Display the day defined by the DateTimeFormatInfo.DayNames() property associated with the current thread or by a specified format provider.
ddddd (plus any number of additional d characters) Treated the same as dddd.
g Display the Japanese era name as a letter (M, T, S, H).
gg Display the Japanese era name as the first DBCS character (明, 大, 昭, 平).
ggg Display the Japanese era using full DBCS characters (明治, 大正, 昭和, 平成).
gggg (plus any number of additional g characters) Treated the same as ggg.
h Display the hour as a number without leading zeros (0 - 11) in 12 hour mode.
hh Display the hour as a number with leading zeros (00 - 11) in 12 hour mode.
hhh (plus any number of additional h characters) Treated the same as hh.
H Display the hour as a number without leading zeros (0 - 23) in 24 hour mode.
HH Display the hour as a number with leading zeros (00 - 23) in 24 hour mode.
HHH (plus any number of additional H characters) Treated the same as HH.
m Display minutes as a number without leading zeros (0 - 59).
mm Display minutes as a number without leading zeros (00 - 59).
mmm (plus any number of additional m characters) Treated the same as mm.
M Display the month as a number without a leading zero (1 - 12).
MM Display the month as a number with a leading zero (01 - 12).
MMM Display the month as defined by the DateTimeFormatInfo.AbbreviatedMonthNames() property associated with the current thread or by a specified format provider.
MMMM Display the month as defined by the DateTimeFormatInfo.MonthNames() property associated with the current thread or by a specified format provider.
MMMMM (plus any number of additional M characters) Treated the same as MMMM.
s Display seconds as a number without leading zeros (0 - 59).
ss Display seconds as a number with leading zeros (00 - 59).
sss (plus any number of additional s characters) Treated the same as ss.
t Displays the first character of the A.M./P.M. designator.
tt Displays the A.M./P.M. designator.
ttt (plus any number of additional t characters) Treated the same as tt.
y Display the year as a number without a leading zero (0 - 99).
yy Display the year as a number with a leading zero (00 - 99).
yyy Display the year as a number without a leading zero (1 - 9999).
yyyy Display the year as a 4-digit number (0001 - 9999).
yyyyy (plus any number of additional y characters) Treated the same as yyyy.
A Display the AD expression: "A.D."
E Display the nengo year as a single digit number when possible (the first year uses the Japanese era name).
d ShortDatePattern.
D LongDatePattern.
f/F Full date and time (long date and short time).
g General (short date and short time).
G General (short date and long time).
m/M MonthDayPattern.
r/R RFC1123Pattern.
s SortableDateTimePattern.
t shortTimePattern.
T LongTimePattern.
u UniversalSortableDateTimePattern.
U Full date and time (long date and long time) using universal time.
y/Y YearMonthPattern.
See Also

Reference