Add one month to timestamp in PHP
Description
The following code shows how to add one month to timestamp.
Example
//w w w . j av a2 s .c o m
<?php
$date = new DateTime('2014-12-31');
$date->modify('+1 month');
echo $date->format('Y-m-d') . "\n";
$date->modify('+1 month');
echo $date->format('Y-m-d') . "\n";
?>
The code above generates the following result.