You may want to add dates to a specific date by using PHP codes. The following codes show how to add days, weeks and months to a date variable.

Units can be used:
day, days, week, weeks, month, months, year, years

// current date
$date = date(“Y-m-d”);
echo $date . “
“;

// Add one day to the $date
$date = date(‘Y-m-d’,strtotime(date(“Y-m-d”, strtotime($date)) . ” +1 day”));
echo $date . “
“;

// Add one week to the $date
$date = date(‘Y-m-d’,strtotime(date(“Y-m-d”, strtotime($date)) . ” +1 week”));
echo $date . “
“;

// Add two weeks to the $date
$date = date(‘Y-m-d’,strtotime(date(“Y-m-d”, strtotime($date)) . ” +2 week”));
echo $date . “
“;

// Add one month to the $date
$date = date(‘Y-m-d’,strtotime(date(“Y-m-d”, strtotime($date)) . ” +1 month”));
echo $date . “
“;

// Add 30 days to the $date
$date = date(‘Y-m-d’,strtotime(date(“Y-m-d”, strtotime($date)) . ” +30 days”));
echo $date . “
“;