RE: [PHP] Convert dates
| From: | John W. Holmes | Date: | Fri, 29 Nov 2002 17:54:10 +0000 |
| Subject: | RE: [PHP] Convert dates | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-126491@lists.php.net to get a copy of this message | ||
> Is there a way to convert a date 2002-11-29 00:00:00:000to 29 November
> 2002
Yes. Try strtotime() and date() in PHP, or break the string apart. If
this date is coming from MySQL, then look at the DATE_FORMAT() function
that you can use in your query to format it.
---John Holmes...