PHP Date & Converter

Formatting Dates

Below is a super useful reference table of common PHP dates. Enter a UNIX timestampe below to see it formatted in the table.

Enter a Unix Timestamp:


Date String Output Comment
H:i:s03:43:49
d/m/y23/11/17Leading zero on day & month
d/m/Y23/11/2017Leading zero on day & month
j/n/y23/11/17No Leading zero on day & month
j/n/Y23/11/2017No Leading zero on day & month
jS F Y23rd November 2017
j<\s\up>S F Y23rd November 2017Superscripted date suffix
l dS F YThursday 23rd November 2017
l j<\s\up>S F YThursday 23rd November 2017
Y-m-d H:i:s2017-11-23 03:43:49MySQL DATETIME Format
Y-M-d2017-Nov-23