Re: win32 Timestamp problem
| From: | Marcjon Louwersheimer | Date: | Wed, 10 Mar 2004 02:56:10 +0000 |
| Subject: | Re: win32 Timestamp problem | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-33379@lists.php.net to get a copy of this message | ||
Not sure if this'll help you, but I like to store my dates/times using
this format: date("Y-m-d H:i:s") It's always a 19 character string, so
you could use the substr function to get different parts of the date.
substr(date("Y-m-d H:i:s"),0,4) would get the year, for example. Hope
this helps.
--
Marcjon