I am parsing a XML , and I get the created time as: Wed, 24 Nov 2010 13:10:00 EST
My requirement is to convert this time into the specified time format using DateTime function before inserting it in the database.
Can anyone help me with this.
Thanks you
Zeeshan
Check out the duplicate link I pointed out above.
The
rdate format might work for you – not sure because of the time zone name. If in doubt, build the mask yourself, usingeas a placeholder for the time zone identifier.The PHP manual on date has the list of placeholders.