Re: date to string
| From: | John Taylor-Johnston | Date: | Fri, 02 Feb 2007 00:40:15 +0000 |
| Subject: | Re: date to string | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-248179@lists.php.net to get a copy of this message | ||
Chris wrote:
John Taylor-Johnston wrote:echo date("l, F j, Y", strtotime("2007-02-01")); That's it?How do I take "2007-02-01" and turn it into Thursday, February 1, 2006?Use strtotime (http://php.net/strtotime) to turn it into a timestamp and then format it using date (http://php.net/date).