date to Y-M-D
| From: | David Rice | Date: | Tue, 25 Mar 2003 14:41:49 +0000 |
| Subject: | date to Y-M-D | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-26618@lists.php.net to get a copy of this message | ||
a function to convert any date to ymd...
function datetoymd($date){
$dateymd = date('Y-m-d',$date);
return $dateymd;
}
this function when output gives me the date 1970-01-01 (date of the unix timestamp start) so, ehm, why!?
cheers,
dave
_________________________________________________________________
Stay in touch with absent friends - get MSN Messenger http://messenger.msn.co.uk