Minus one month date
"Minus one month" date: <?php $yesterday = date('Y-m-d', mktime(0, 0, 0, date("m") - 1 , date("d"), date("Y"))); ?>