Default Output Location
...
The following codes can be used to create custom date / time formats.
Code | Meaning | Example |
---|---|---|
d | The day of the month, from 1 through 31. | 8 |
dd | The day of the month, from 01 through 31. | 08 |
ddd | The abbreviated name of the day of the week. | Mon |
dddd | The full name of the day of the week. | Monday |
h | The hour, using a 12-hour clock from 1 to 12. | 1 |
hh | The hour, using a 12-hour clock from 01 to 12. | 01 |
H | The hour, using a 24-hour clock from 0 to 23. | 13 |
HH | The hour, using a 24-hour clock from 00 to 23. | 13 |
m | The minute, from 0 through 59. | 9 |
mm | The minute, from 00 through 59. | 09 |
M | The month, from 1 through 12. | 3 |
MM | The month, from 01 through 12. | 03 |
MMM | The abbreviated name of the month. | Mar |
MMMM | The full name of the month. | March |
s | The second, from 0 through 59. | 9 |
ss | The second, from 00 through 59. | 09 |
t | The first character of the AM/PM designator. | P |
tt | The AM/PM designator. | PM |
yy | Year (2-digit format) | 15 |
yyyy | Year | 2015 |
...