PHP Date Constants

Here are all the PHP date constants, so you can simply format your timestamp in various ways.
DATE_ATOM => 2018-01-21T02:32:17+00:00
DATE_COOKIE => Sunday, 21-Jan-2018 02:32:17 UTC
DATE_ISO8601 => 2018-01-21T02:32:17+0000
DATE_RFC822 => Sun, 21 Jan 18 02:32:17 +0000
DATE_RFC850 => Sunday, 21-Jan-18 02:32:17 UTC
DATE_RFC1036 => Sun, 21 Jan 18 02:32:17 +0000
DATE_RFC1123 => Sun, 21 Jan 2018 02:32:17 +0000
DATE_RFC2822 => Sun, 21 Jan 2018 02:32:17 +0000
DATE_RFC3339 => 2018-01-21T02:32:17+00:00
DATE_RSS => Sun, 21 Jan 2018 02:32:17 +0000
DATE_W3C => 2018-01-21T02:32:17+00:00

Leave a Reply

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