Re: date problems

From: Date: Mon, 04 Feb 2002 21:16:13 +0000
Subject: Re: date problems
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-83460@lists.php.net to get a copy of this message
sounds like it might have something to do with leap year. Jim Lucas ----- Original Message ----- From: "toni baker" <tanknank@yahoo.com> To: <php-general@lists.php.net> Sent: Monday, February 04, 2002 12:03 PM Subject: [PHP] date problems > $date1 = "12/12/2001"; > $date1 = date("D M j Y", strtotime($date1)); > print $date1."<br>"; > > When I execute the code above I get the following > output: > > Tue Dec 11 2001 instead Wed Dec !2 2001 > > Why does this happen and how can I get the Dec 12 > output? Thanks > > > > > > > __________________________________________________ > Do You Yahoo!? > Great stuff seeking new owners in Yahoo! Auctions! > http://auctions.yahoo.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#83460) next »