Axonize enables users to define how time and date are displayed, below is a selection of the available options, full list available in the Display section of moments:
Unit | Format | Display |
Fractional Second | S | 0 1 ... 8 9 |
SS | 00 01 ... 98 99 | |
SSS | 000 001 ... 998 999 | |
Second | s | 0 1 ... 58 59 |
ss | 00 01 ... 58 59 | |
Minute | m | 0 1 ... 58 59 |
mm | 00 01 ... 58 59 | |
Hour | H | 0 1 ... 22 23 |
HH | 00 01 ... 22 23 | |
h | 1 2 ... 11 12 | |
hh | 01 02 ... 11 12 | |
AM/PM | A | AM PM |
a | am pm | |
Day Of Week | dd | Su Mo ... Fr Sa |
ddd | Sun Mon ... Fri Sat | |
dddd | Sunday Monday ... Friday Saturday | |
Day Of Month | D | 1 2 ... 30 31 |
Do | 1st 2nd ... 30th 31st | |
DD | 01 02 ... 30 31 | |
Month | M | 1 2 ... 11 12 |
Mo | 1st 2nd ... 11th 12th | |
MM | 01 02 ... 11 12 | |
MMM | Jan Feb ... Nov Dec | |
MMMM | January February ... November December | |
Year | YY | 70 71 ... 29 30 |
YYYY | 1970 1971 ... 2029 2030 |
Examples:
"dddd, MMMM Do YYYY, h:mm:ss a" | "Sunday, February 14th 2010, 3:25:50 pm" |
"ddd, hA" | "Sun, 3PM" |