Re: convert date format-SOLVED
| From: | Chris Ramsay | Date: | Thu, 24 Mar 2005 11:03:30 +0000 |
| Subject: | Re: convert date format-SOLVED | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-211448@lists.php.net to get a copy of this message | ||
Angelo,
slightly OT , but as a point of interest perhaps, $row['date'] seemed
to indicate that your date comes out of a DB - you can date format
stuff with sql too - I find that useful sometimes...
With MySQL for example, if your date field is called 'myDate' you can
do the following in the query:
SELECT ... DATE_FORMAT(myDate, %d %b %Y) AS date ,....FROM.....
which formats $row['date'] as '25 mar 2005'...
rgds
chris