fun with dates
Posted: Mon Jan 17, 2005 3:07 pm
here's something that happens. why?
Code: Select all
//this is actually pulled from a mysql db, but a var_dump tells me its:
//string(19) "0000-00-00 00:00:00"
//so this is the same
$blankDate = "0000-00-00 00:00:00";
echo date("m-d-Y",strtotime($blankDate));
//prints 11-30-1999
//why? what's up with that date? its not the Start Date or anything?