I am trying to convert a date that I take from an email. It is in this format:
Wed, 02 Aug 2006 03:59:10 -0700
And I want to convert it to:
2006-08-02
This:
trim(substr($date,12,4))."-".trim(substr($date,8,3))."-".trim(substr($date,5,2))
...will get me:
2006-Aug-02.
Any quick php tips to convert the "Aug" to convert to "08"?
Thanks!
-- This message may have been cut off and the rest will only be shown to members. To become a member, click here --