PHP Date Constants

Here are all the PHP date constants, so you can simply format your timestamp in various ways.
DATE_ATOM => 2018-11-12T22:43:03+00:00
DATE_COOKIE => Monday, 12-Nov-2018 22:43:03 UTC
DATE_ISO8601 => 2018-11-12T22:43:03+0000
DATE_RFC822 => Mon, 12 Nov 18 22:43:03 +0000
DATE_RFC850 => Monday, 12-Nov-18 22:43:03 UTC
DATE_RFC1036 => Mon, 12 Nov 18 22:43:03 +0000
DATE_RFC1123 => Mon, 12 Nov 2018 22:43:03 +0000
DATE_RFC2822 => Mon, 12 Nov 2018 22:43:03 +0000
DATE_RFC3339 => 2018-11-12T22:43:03+00:00
DATE_RSS => Mon, 12 Nov 2018 22:43:03 +0000
DATE_W3C => 2018-11-12T22:43:03+00:00

Leave a Reply

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