Re: Which function returns a correct ISO8601 date?
[email protected] (Alessandro Pellizzari)
| Newsgroups | php.general |
|---|---|
| Message-ID | <[email protected]> |
On Sat, 07 Sep 2013 14:47:00 +0200, Simon Schick wrote:
> The method date("c") actually formats a date, fitting to the format
> defined in the constant DateTime::ATOM.
>
> Are both formats (with and without colon) valid for ISO8601, or is the
> documentation for the method date() wrong?
Yes:
http://en.wikipedia.org/wiki/ISO_8601#Time_zone_designators
Bye.