Specifier | Description |
N0 | Number with no decimal places |
N3 | Number with 3 decimal places |
X | Hexadecimal (supported only for integral types) |
C | Currency |
Specifier | Description |
T (only) | Long time pattern (equivalent to HH:mm:ss). |
d (only) | Short date pattern (equivalent to M/d/yyyy (month/day/year) for en-us). |
dd | Show the day of the month as a number from 01 through 31. |
ddd | Show the abbreviated name of the day of the week. |
dddd | Show the full name of the day of the week. |
MM | Show the month as a number from 01 through 12. |
MMM | Show the abbreviated name of the month. |
yy | Show the year as a two-digit number. |
yyyy | Show the year as a four-digit number. |
hh | Show the hour as a number from 01 through 12. |
HH | Show the hour as a number from 00 through 23. |
mm | Show the minute as a number from 00 through 59. |
ss | Show the seconds as a number from 00 through 59. |
fff | Show the milliseconds as a number from 000 through 999. |
tt | Show the A.M./P.M. designator. |