Re: [PHP] mktime month

2006-03-10 Thread Austin Denyer
Mark Steudel wrote: > Im a little confused on the number I should use for the month: > > Take the following: > > echo date('Ymd', mktime(0, 0, 0, 3, 0, date("Y")) ); > > I expected it to output: 20060331 > > But instead it outputs 20060228. Correct. You are asking it for the zeroth day of

[PHP] mktime month

2006-03-10 Thread Mark Steudel
Im a little confused on the number I should use for the month: Take the following: echo date('Ymd', mktime(0, 0, 0, 3, 0, date("Y")) ); I expected it to output: 20060331 But instead it outputs 20060228. In the examples for january in the php manual I get december instead of january. Is