Re: Any easy way to go from MySQL Dates to PHP dates?
| From: | Jason Wong | Date: | Sat, 30 Mar 2002 20:07:39 +0000 |
| Subject: | Re: Any easy way to go from MySQL Dates to PHP dates? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-90806@lists.php.net to get a copy of this message | ||
On Sunday 31 March 2002 04:04, David Johansen wrote:
> I was just wondering if there's any way to work with dates returned from a
> MySQL query in PHP. Right now I do all of different stuff in my MySQL query
> but it's really cumbersome, so I would like to be able to do it all with
> PHP. Is there any way to do that? Thanks,
> Dave
>
> Here's my MySQL query:
In MySQL return the date through a UNIX_TIMESTAMP() then in PHP you can
manipulate any which way you want.
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
/*
Those aren't WINOS -- that's my JUGGLER, my AERIALIST, my SWORD
SWALLOWER, and my LATEX NOVELTY SUPPLIER!!
*/