Re: Last Day of Year Date Bug?
- From: larry@xxxxxxxxxxxxxxxxx
- Date: Mon, 31 Dec 2007 09:08:35 -0800 (PST)
On Dec 31, 6:30 am, Arnie Shore <shor...@xxxxxxxxx> wrote:
Guys, the line below just returned "Dec 07" as the date for one month
back from today. Hardly life-threatening, but any thoughts?
<?php print date("M `y", mktime(0, 0, 0, date("m")-1, date("d"),
date("Y")));?>
AS
Hmm December 1, 2007... Because there are not 31 days in November -
so the mktime entry of 11,31,2007 would translate to 12,1,2007.
.
- References:
- Last Day of Year Date Bug?
- From: Arnie Shore
- Last Day of Year Date Bug?
- Prev by Date: Re: [PHP] simplexml problem
- Next by Date: Re: [PHP] script stoped working over christmas ?
- Previous by thread: Last Day of Year Date Bug?
- Index(es):