Re: Changing MySQL Date Format
| From: | Brent Clements | Date: | Thu, 12 Aug 2004 12:44:01 +0000 |
| Subject: | Re: Changing MySQL Date Format | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-193549@lists.php.net to get a copy of this message | ||
Why not just write a simple function in php to change your date around for
you? A function in a utility class perhaps?
-Brent
----- Original Message -----
From: "Jay Blanchard" <jay.blanchard@niicommunications.com>
To: "Harlequin" <michael.mason@arraspeople.co.uk>;
<php-general@lists.php.net>
Sent: Thursday, August 12, 2004 7:39 AM
Subject: RE: [PHP] Changing MySQL Date Format
[snip]
I'm using a hell of a lot of dates in my databases and wondered if it
was
possible to change the date format in my databases from 0000-00-00 to:
00-00-0000...?
Has anyone else managed to do this or use any workarounds I could use
perhaps...?
I'm just getting a little hacked of having to explode the damn things
every
time I use them.
[/snip]
The date time format is pretty standard, start here
http://www.mysql.com/date
You could write a date function that does your explosions for you. Or
you could query the MySQL list for other solutions. (pun intended)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php