Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Timestamps for 1800's
- DJ Craig
July 20, 2005, 2:27 pm
rate this thread
That's YYYYMMDD. So first I need to convert it to a UNIX time stamp
using the strtotime() function, then convert it to YYYYMMDD. This
works for more rescent dates:
$d = date('Ymd', strtotime($d));
I tested that with 19 July2005, and it worked. But the strtotime()
function seems to return -1 for dates before the UNIX epoch. How can I
convert these dates?