RE: [PHP-DB] date to Y-M-D

2003-03-25 Thread Snijders, Mark
PROTECTED] Verzonden: Tuesday, March 25, 2003 3:42 PM Aan: [EMAIL PROTECTED] Onderwerp: [PHP-DB] date to Y-M-D 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 197

Re: [PHP-DB] date to Y-M-D

2003-03-25 Thread CPT John W. Holmes
> 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 Holme

[PHP-DB] date to Y-M-D

2003-03-25 Thread David Rice
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 ___