Re: syntax for date math expressions
| From: | Rasmus Lerdorf | Date: | Wed, 03 Apr 2002 21:14:36 +0000 |
| Subject: | Re: syntax for date math expressions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-91410@lists.php.net to get a copy of this message | ||
> I'd actually like to use MySQL's builtin date formats, but I like the
> timestamp that PHP uses (and I like what I can do with a timestamp in
> the date() function) so I have been using VARCHAR(20) to hold the date
> as a string. MySQL's TIMESTAMP is not the same thing as PHP's.
But you can simply call MySQL's UNIX_TIMESTAMP() function on the mysql
field when you select it if you want it into unix timestamp format.
-Rasmus