...
Character | Meaning | Example (2 August 2018, 16:09:22) |
---|---|---|
E | Day of week as number (1-7 where Monday=1) | 4 |
EEEE | Day of week, full name | Thursday |
d | Day of month | 2 |
dd | Day of month, with leading 0 if less than 10 | 02 |
M | Month as a number | 8 |
MM | Month as a number, with leading 0 if less than 10 | 08 |
MMM | Month as text, abbreviated to 3 characters | Aug |
MMMM | Month as text, full name | August |
y or yyyy | Year, 4 digits | 2018 |
yy | Year, 2 digits | 18 |
H | Hour of day (0-23) | 16 |
HH | Hour of day (0-23), with leading 0 if less than 10 | 16 |
h | Clock hour of half day (1-12) | 4 |
hh | Clock hour of half day (1-12), with leading 0 if less than 10 | 04 |
m | Minute | 9 |
mm | Minute, with leading 0 if less than 10 | 09 |
s | Second | 22 |
ss | Seconds, with leading 0 if less than 10 | 22 |
...