Date Format Demonstrator

The PHP date() function can present dates in lots of different formats. This page helps you to build your own formats

Enter the date you would like to convert. If you leave this field blank, the current time will be used. Information on acceptable formats
Format codeFormat description2017-08-23T10:47:12+01:00
dDay of the month, 2 digits with leading zeros23
DA textual representation of a day, three lettersWed
jDay of the month without leading zeros23
lA full textual representation of the day of the weekWednesday
NISO-8601 numeric representation of the day of the week - 1 (for Monday) through 7 (for Sunday)3
SEnglish ordinal suffix for the day of the month, 2 charactersrd
wNumeric representation of the day of the week - 0 (for Sunday) through 6 (for Saturday)3
zThe day of the year (starting from 0)234
WISO-8601 week number of year, weeks starting on Monday34
FA full textual representation of a month, such as January or MarchAugust
mNumeric representation of a month, with leading zeros - 01 through 1208
MA short textual representation of a month, three lettersAug
nNumeric representation of a month, without leading zeros8
tNumber of days in the given month31
LWhether it's a leap year0
oISO-8601 year number - if the ISO week number (W) belongs to the previous or next year, that year is used instead2017
YA full numeric representation of a year, 4 digits2017
yA two digit representation of a year17
aLowercase Ante meridiem and Post meridiem am
AUppercase Ante meridiem and Post meridiemAM
BSwatch Internet time449
g12-hour format of an hour without leading zeros10
G24-hour format of an hour without leading zeros 10
h12-hour format of an hour with leading zeros10
H24-hour format of an hour with leading zeros10
iMinutes with leading zeros47
sSeconds, with leading zeros12
uMicroseconds000000
eTimezone identifierEurope/London
IWhether or not the date is in daylight saving time 1 if Daylight Saving Time, 0 otherwise.1
ODifference to Greenwich time (GMT) in hours+0100
PDifference to Greenwich time (GMT) with colon between hours and minutes+01:00
TTimezone abbreviationBST
ZTimezone offset in seconds. The offset for timezones west of UTC is always negative, and for those east of UTC is always positive.3600
cISO 8601 date2017-08-23T10:47:12+01:00
rRFC 2822 formatted dateWed, 23 Aug 2017 10:47:12 +0100
USeconds since the Unix Epoch (January 1 1970 00:00:00 GMT)1503481632
j M YShort date format23 Aug 2017
Y-m-dSQL date format2017-08-23