Given a time, how can I find the time one month ago.
<?php $date = new DateTime("18-July-2008 16:30:30"); echo $date->format("d-m-Y H:i:s").'<br />'; date_sub($date, new DateInterval("P1M")); echo '<br />'.$date->format("d-m-Y").' : 1 Month'; ?>