I have this:
$today=date('Y-m-d');
// echo "2013-11-12";
I want to get the last month range like this:
$startLastMonth = "2013-10-01";
$endLastMonth = "2013-10-31";
I try that but it's does not meet my desire as I need to put 42:
$startLastMonth = mktime(0, 0, 0, date("Y"), date("m"), date("d")-42);
Is there another way ?
Thanks