I want to get last month\'s date. I wrote this out:
$prevmonth = date(\'M Y\');
Which gives me the current month/year. I can\'t tell if I
echo date('Y',strtotime("-1 year")); //last year echo date('d',strtotime("-1 day")); //last day echo date('m',strtotime("-1 month")); //last month