PHP Date Constants

Here are all the PHP date constants, so you can simply format your timestamp in various ways.
DATE_ATOM => 2018-09-21T23:44:30+00:00
DATE_COOKIE => Friday, 21-Sep-2018 23:44:30 UTC
DATE_ISO8601 => 2018-09-21T23:44:30+0000
DATE_RFC822 => Fri, 21 Sep 18 23:44:30 +0000
DATE_RFC850 => Friday, 21-Sep-18 23:44:30 UTC
DATE_RFC1036 => Fri, 21 Sep 18 23:44:30 +0000
DATE_RFC1123 => Fri, 21 Sep 2018 23:44:30 +0000
DATE_RFC2822 => Fri, 21 Sep 2018 23:44:30 +0000
DATE_RFC3339 => 2018-09-21T23:44:30+00:00
DATE_RSS => Fri, 21 Sep 2018 23:44:30 +0000
DATE_W3C => 2018-09-21T23:44:30+00:00

Leave a Reply

Your email address will not be published. Required fields are marked *