1 2 3 4 5
<?php $cdate = new DateTime("+7 months"); $cdate->modify("-" . ($cdate->format('j')-1) . " days"); echo $ex= $cdate->format('Y-m-d');
1
2014-03-01