Date: 11/15/00
- Next message: Mike: "[PHP-DB] Mssql insert problem"
- Previous message: Philip Olson: "Re: [PHP-DB] mySQL connect"
- Next in thread: Sam Masiello: "RE: [PHP-DB] Data / Time problem"
- Reply: Sam Masiello: "RE: [PHP-DB] Data / Time problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: Mike: "[PHP-DB] Mssql insert problem"
- Previous message: Philip Olson: "Re: [PHP-DB] mySQL connect"
- Next in thread: Sam Masiello: "RE: [PHP-DB] Data / Time problem"
- Reply: Sam Masiello: "RE: [PHP-DB] Data / Time problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

