November 24th, 2012, 10:32 AM
How to i convert a php date to unix timestamp
i am having trouble converting my dates into a UNIX Timestamp.
the dates come in this format :
i would now like to convert this date into a UNIX timestamp. i tried several methods but each one gave me an incorrect date.
thank you very much for your assistance.
November 24th, 2012, 11:28 AM
What method did you try? I would think 'strtotime' could handle that.
There are 10 kinds of people in the world. Those that understand binary and those that don't.
November 24th, 2012, 11:45 AM
php > echo date('c', strtotime('31- Dec-2012'));
HEY! YOU! Read the New User Guide and Forum Rules
"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin
"The greatest tragedy of this changing society is that people who never knew what it was like before will simply assume that this is the way things are supposed to be." -2600 Magazine, Fall 2002
Think we're being rude? Maybe you asked a bad question
or you're a Help Vampire.
Trying to argue intelligently? Please read this.
November 25th, 2012, 10:46 AM
thank you for your help everyone. i resolved the issue.
Originally Posted by ManiacDan
i really appreciate the kind advice