PHP Date Constants

Here are all the PHP date constants, so you can simply format your timestamp in various ways.
DATE_ATOM => 2017-09-19T15:21:32+00:00
DATE_COOKIE => Tuesday, 19-Sep-2017 15:21:32 UTC
DATE_ISO8601 => 2017-09-19T15:21:32+0000
DATE_RFC822 => Tue, 19 Sep 17 15:21:32 +0000
DATE_RFC850 => Tuesday, 19-Sep-17 15:21:32 UTC
DATE_RFC1036 => Tue, 19 Sep 17 15:21:32 +0000
DATE_RFC1123 => Tue, 19 Sep 2017 15:21:32 +0000
DATE_RFC2822 => Tue, 19 Sep 2017 15:21:32 +0000
DATE_RFC3339 => 2017-09-19T15:21:32+00:00
DATE_RSS => Tue, 19 Sep 2017 15:21:32 +0000
DATE_W3C => 2017-09-19T15:21:32+00:00

Leave a Reply

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