Hello
I used php date function to work out last month based on the current timestamp.
$last_month = date("Y-m-01",mktime(0, 0, 0, date("m")-1, date("d"), date("Y")));
The above code supposed to give the output 2006-02-01 given the current date 2006-03-31, but the output of the variable $last_month was 2006-03-01
What was wrong?
Norman