I am accessing date fields from my MySql database & while displaying i do it like
$fields=mysql_fetch_row($result);
$five=getdate(strtotime($fields[8]));
$LastDate= $five["mday"]."-".$five["month"]."-".$five["year"]."-".$five["hours"]."-".$five["minutes"] ;
But this code doesn't work,where $fields[8] is "2000/10/10 00:00:00"
strtotime function returns -1.So how to get correct result???
Pls help
$fields=mysql_fetch_row($result);
$five=getdate(strtotime($fields[8]));
$LastDate= $five["mday"]."-".$five["month"]."-".$five["year"]."-".$five["hours"]."-".$five["minutes"] ;
But this code doesn't work,where $fields[8] is "2000/10/10 00:00:00"
strtotime function returns -1.So how to get correct result???
Pls help