- date: documentation ( source)
- strtotime: documentation ( source)
<?php
$a = new DateTime('2015-1-31');
$b = new DateTime('2015-1-31 00:00');
//$a->add(new DateInterval('P6Y'));
//echo $a->format('Y-m-d H:i:s');
//echo date('Y-m-d', strtotime('+1 month', strtotime('2015-1-31')));
//echo $a < $b ? 'ja' : 'nein';
echo date('Y-m-d','2015-1-31' + strtotime('+3 months'));