Re: php or juvascript convert IETF format to ISO08601
| From: | Simon J Welsh | Date: | Mon, 14 Mar 2011 23:44:09 +0000 |
| Subject: | Re: php or juvascript convert IETF format to ISO08601 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-311844@lists.php.net to get a copy of this message | ||
On 15/03/2011, at 12:32 PM, Jordan wrote:
> Hello Evrybody,
>
> Can i convert IETF format (ex: "Wed, 18 Oct 2009 13:00:00 EST") in ISO8601 format
> (ex: "2009-11-05T13:15:30Z")
>
> Does somebody know some php scripte or similar?
>
> Thanks...
strtotime() (http://php.net/strtotime) and date() (http://php.net/date). There's even a
DATE_ISO8601 constant for the correct date format.
---
Simon Welsh
Admin of http://simon.geek.nz/
Who said Microsoft never created a bug-free program? The blue screen never, ever crashes!
http://www.thinkgeek.com/brain/gimme.cgi?wid=81d520e5e