Re: convert a strtotime date into a text representation of the date

From: Date: Thu, 04 Mar 2004 05:31:00 +0000
Subject: Re: convert a strtotime date into a text representation of the date
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-179422@lists.php.net to get a copy of this message
On Thursday 04 March 2004 12:52, Andy B wrote: > You'd want something more like this for the format: > echo date("l F j Y", $time); > but for me, this caused the following output > Saturday June 27 2009 > doesn't seem right somehow :/ > > i know i wonder if i have the strtotime("third saturday january 2005"); > written all wrong or something..... Breaking it up like this: $time= strtotime("third saturday", mktime(0,0,0,1,1,2005)); echo date("l F j Y", $time); seems to work. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* Some men rob you with a six-gun -- others with a fountain pen. -- Woodie Guthrie */

« previous php.general (#179422) next »