Using strtotime for dates before 1970
Posted
by ctroy
on Stack Overflow
See other posts from Stack Overflow
or by ctroy
Published on 2010-05-20T05:37:41Z
Indexed on
2010/05/20
5:40 UTC
Read the original article
Hit count: 221
I have a text column in mysql and it stores a date value in the format yyyy-mm-dd. Now, in my php page, I use this code to parse into a date value.
date("F j, Y", strtotime($row['value']));
Now, I just read that strtotime() parses values only after January 1, 1970. I have lot of date values before that date. Is there a work around? I don't want to change my database structure.
© Stack Overflow or respective owner