sir pannels
09-05-2006, 10:18 AM
Hi there,
Trying to take mysql date format and output it as us standard YYYY-DD-MM however it seems to be ignoring my date.. here is my code...
<?
$oldDate="2005-12-01";
$newDate = date("m-d-Y", $oldDate);
echo $newDate;
?>
// This returns :
1970-01-01
Any ideas?
Cheers,
Sir P
Trying to take mysql date format and output it as us standard YYYY-DD-MM however it seems to be ignoring my date.. here is my code...
<?
$oldDate="2005-12-01";
$newDate = date("m-d-Y", $oldDate);
echo $newDate;
?>
// This returns :
1970-01-01
Any ideas?
Cheers,
Sir P