d | Day of the month, 2 digits with leading zeros | 21 |
D | A textual representation of a day, three letters | Thu |
j | Day of the month without leading zeros | 21 |
l | A full textual representation of the day of the week | Thursday |
N | ISO-8601 numeric representation of the day of the week - 1 (for Monday) through 7 (for Sunday) | 4 |
S | English ordinal suffix for the day of the month, 2 characters | st |
w | Numeric representation of the day of the week - 0 (for Sunday) through 6 (for Saturday) | 4 |
z | The day of the year (starting from 0) | 325 |
W | ISO-8601 week number of year, weeks starting on Monday | 47 |
F | A full textual representation of a month, such as January or March | November |
m | Numeric representation of a month, with leading zeros - 01 through 12 | 11 |
M | A short textual representation of a month, three letters | Nov |
n | Numeric representation of a month, without leading zeros | 11 |
t | Number of days in the given month | 30 |
L | Whether it's a leap year | 1 |
o | ISO-8601 year number - if the ISO week number (W) belongs to the previous or next year, that year is used instead | 2024 |
Y | A full numeric representation of a year, 4 digits | 2024 |
y | A two digit representation of a year | 24 |
a | Lowercase Ante meridiem and Post meridiem | pm |
A | Uppercase Ante meridiem and Post meridiem | PM |
B | Swatch Internet time | 590 |
g | 12-hour format of an hour without leading zeros | 1 |
G | 24-hour format of an hour without leading zeros | 13 |
h | 12-hour format of an hour with leading zeros | 01 |
H | 24-hour format of an hour with leading zeros | 13 |
i | Minutes with leading zeros | 10 |
s | Seconds, with leading zeros | 20 |
u | Microseconds | 000000 |
e | Timezone identifier | UTC |
I | Whether or not the date is in daylight saving time 1 if Daylight Saving Time, 0 otherwise. | 0 |
O | Difference to Greenwich time (GMT) in hours | +0000 |
P | Difference to Greenwich time (GMT) with colon between hours and minutes | +00:00 |
T | Timezone abbreviation | UTC |
Z | Timezone offset in seconds. The offset for timezones west of UTC is always negative, and for those east of UTC is always positive. | 0 |
c | ISO 8601 date | 2024-11-21T13:10:20+00:00 |
r | RFC 2822 formatted date | Thu, 21 Nov 2024 13:10:20 +0000 |
U | Seconds since the Unix Epoch (January 1 1970 00:00:00 GMT) | 1732194620 |
j M Y | Short date format | 21 Nov 2024 |
Y-m-d | SQL date format | 2024-11-21 |