RE: [PHP-DB] Re: [PHP] Varchar "date" to real date?
| From: | Bastien Koert | Date: | Tue, 27 Dec 2005 14:52:38 +0000 |
| Subject: | RE: [PHP-DB] Re: [PHP] Varchar "date" to real date? | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-40930@lists.php.net to get a copy of this message | ||
if its coming from the db, just provide the appropraite format to the date function
ie
date("Y.m.d", $rows['datefield']);
Bastien
From: John Meyer <john.l.meyer@gmail.com> To: php-db@lists.php.net Subject: [PHP-DB] Re: [PHP] Varchar "date" to real date? Date: Tue, 27 Dec 2005 07:35:42 -0700 On Tuesday 27 December 2005 7:01 am, William Stokes wrote: I think I need some help/ideas with this... If I can get this done how can I still display the dates in european format at my web page? Do I have to break the date to pieces and some how re-arrange it to the DD.MM.YYYY format or is the some clever function for this that can automatically do this? Well, initially, you probably need to explode it than rearrange it to get it into the database. Once there, however, I would think you could rearrange it with Date format. -- Dr. Joseph Dolan: Isn't there a children's book about an elephant named Babar? Fletch: I don't know. I don't have any. Dr. Joseph Dolan: No children? Fletch: No, elephant books. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php