<?php $format = 'Y-m-d'; $reqDate = date ( $format, strtotime ( '2014-03-30' ) )."\n"; echo $reqDate; // - 1 month echo date($format, strtotime("$reqDate -2 month"));
You have javascript disabled. You will not be able to edit any code.