note 23499 deleted from function.date by sniper
| From: | sniper@php.net | Date: | Sat, 11 Oct 2003 16:50:14 +0000 |
| Subject: | note 23499 deleted from function.date by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-58260@lists.php.net to get a copy of this message | ||
Note Submitter: gto@OseMicro.com
----
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.