Re: date to Y-M-D

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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...


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux