I\'m trying to subtract 1 month from a date.
$today = date(\'m-Y\');
This gives: 08-2016
How can I subtract a month to get 07
07
if(date("d") > 28){ $date = date("Y-m", strtotime("-".$loop." months -2 Day")); } else { $date = date("Y-m", strtotime("-".$loop." months")); }