[eluser]Michael Wales[/eluser]
Code:
// Go backwards from today (according to your config.php setting)
// $modifier is the # of months to go back
$this->load->helper('date');
echo date('Y-m-d', strtotime('-' . $modifier . ' months', mysql_to_unix(now())));