Codular

HomeWriters RSS

PHP Date & Time 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:s06:32:02
d/m/y11/08/20Leading zero on day & month
d/m/Y11/08/2020Leading zero on day & month
j/n/y11/8/20No Leading zero on day & month
j/n/Y11/8/2020No Leading zero on day & month
jS F Y11th August 2020
j<\s\up>S F Y11th August 2020Superscripted date suffix
l dS F YTuesday 11th August 2020
l j<\s\up>S F YTuesday 11th August 2020
Y-m-d H:i:s2020-08-11 06:32:02MySQL DATETIME Format
Y-M-d2020-Aug-11