php should you use +1 month datetime code example
Example 1: +1 month php
$time = strtotime("2010.12.11");
$final = date("Y-m-d", strtotime("+1 month", $time));
Example 2: get month days in php
echo cal_days_in_month(CAL_GREGORIAN, 8, 2009);
$time = strtotime("2010.12.11");
$final = date("Y-m-d", strtotime("+1 month", $time));
echo cal_days_in_month(CAL_GREGORIAN, 8, 2009);