[PHP-DB] Data / Time problem From: kenji chan (kenjikenji <email protected>)
Date: 11/15/00

Data / Time problem:
How to format a date from Mysql column ( timestamp(8) ) to "Year / Month /
Day" ?
I got a problem , For examlp :

*********
$fromMysql = "19811229";

echo date("Y / m / d", $fromMysql);
*********

I would like to see 1981 / 12 /29 ,but I got the result :
1970 / 08 / 18

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe <email protected>
For additional commands, e-mail: php-db-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>