Re: date to Y-M-D

From: Date: Tue, 25 Mar 2003 14:48:28 +0000
Subject: Re: date to Y-M-D
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-26619@lists.php.net to get a copy of this message
> 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!? Because you're not passing a valid Unix timestamp or whatever your passing is empty. ---John Holmes...

« previous php.db (#26619) next »