note 23499 added to function.date
| From: | gto at OseMicro dot com | Date: | Fri, 19 Jul 2002 16:21:06 +0000 |
| Subject: | note 23499 added to function.date | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-33314@lists.php.net to get a copy of this message | ||
Just a quick note on the timestamps in mySQL and PHP. If you want to insert a timestamp into the
mySQL database and keep the mySql form just use
date("YmdHis")
to generate the mySQL form timestamp. That way you can use mySQL date_format function in the Select
to format the timestamp when you pull the data back out.
--
http://www.php.net/manual/en/function.date.php
http://master.php.net/manage/user-notes.php?action=edit+23499
http://master.php.net/manage/user-notes.php?action=delete+23499
http://master.php.net/manage/user-notes.php?action=reject+23499