I use the following to format my dates from the mySQL format to my html display format.
And it works fine. But my users insert a bogus date of "1901-01-01" when a project is on hold.
Running that date through this routine returns a date of
12/31/1969.
Why is that?
Code:
$time = strtotime($date); $m = date("m", $time); $d = date("d", $time); $y = date("Y", $time); $date = "$m/$d/$y";
Running that date through this routine returns a date of
12/31/1969.
Why is that?
Comment