Codice PHP:
echo date('d-m-Y',strtotime('-3 month'));