Re: Last Day of Year Date Bug?



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.
.