Drop down for a table of newly added format keywords
Keywords | Description |
---|---|
e | Display the nengo year as a single digit number when possible (1-??). |
ee | Display the nengo year as a 2 digits number when possible (01-??). |
eee (plus any number of additional "e" character) | Treated same as "ee". |
g | Display the era name in alphabet (M, T, S, H). |
gg | Display the first character (DBCS) era (明, 大, 昭, 平). |
ggg | Display the full (DBCS) era (明治, 大正, 昭和, 平成). |
gggg(plus any number of additional "g" character) | Treated same as "ggg" if there doesn't have other "g" or "gg" or "ggg" pattern in format string. |
Drop down for a table of the original keywords
Keywords | Description |
---|---|
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/dddd/ddddd(plus any number of additional "d" character) | The full name of the day of the week. |
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" character) | Treated same as "hh" if there doesn't have other "h" or "hh" or "H" or "HH" pattern in format string. |
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" character) | Treated same as "HH" if there doesn't have other "h" or "hh" of "H" or "HH" pattern in format string> |
m | Display the minute as a number without leading zeros (0 - 59). |
mm | Display the minute as a number with leading zeros (00 - 59). |
mmm(plus any number of additional "m" character) | Treated same as "mm" if there doesn't have other "m" or "mm" pattern in format string. |
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 defined by the DateTimeFormatInfo.AbbreviatedMonthNames() property associated with the current thread or by a specified format provider. |
MMMM | Display the month defined by the DateTimeFormatInfo.MonthNames() property associated with the current thread or by a specified format provider. |
MMMMM(plus any number of additional "M" character) | Treated same as "MMMM". |
s | Display the second as a number without leading zeros (0 - 59). |
ss | Display the second as a number with leading zeros (00 - 59). |
sss(plus any number of additional "s" character) | Treated same as "ss" if there doesn't have other "s" or "ss" pattern in format string. |
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 of "t" character) | Treated same as "tt". |
y | Display the year as a 2-digit number without leading zeros (0 - 99). |
yy | Display the year as a 2-digit number (00 - 99). |
yyy | Display the year as a 4-digit number without leading zeros (100 - 9999). |
yyyy | Display the year as a 4-digit number (0100 - 9999). |
yyyyy(plus any number of additional of "y" character) | Treated same as "yyyy". |
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 |
Drop down for a table of newly added display format keywords
Keywords | Description |
---|---|
e | Display the nengo year as a single digit number when possible (1-??). |
ee | Display the nengo year as a 2 digits number when possible (01-??). |
eee(plus any number of additional "e" character) | Treated 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" character) | Treated same as "dddd". |
g | Display the era name in alphabet (M, T, S, H). |
gg | Display the first character (DBCS) era (明, 大, 昭, 平). |
ggg | Display the full (DBCS) era (明治, 大正, 昭和, 平成). |
gggg(plus any number of additional "g" character) | Treated 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" character) | Treated 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" character) | Treated same as "HH". |
m | Display the minute as a number without leading zeros (0 - 59) |
mm | Display the minute as a number without leading zeros (00 - 59) |
mmm(plus any number of additional "m" character) | Treated 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 defined by the DateTimeFormatInfo.AbbreviatedMonthNames() property associated with the current thread or by a specified format provider. |
MMMM | Display the month defined by the DateTimeFormatInfo.MonthNames() property associated with the current thread or by a specified format provider. |
MMMMM(plus any number of additional "M" character) | Treated same as "MMMM". |
s | Display the second as a number without leading zeros (0 - 59) |
ss | Display the second as a number with leading zeros (00 - 59) |
sss(plus any number of additional "s" character) | Treated 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 of "t" character) | Treated 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 of "y" character) | Treated same as "yyyy". |
A | Display the AD expression: "A.D.". |
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 |