Codice PHP:
$data date('d-m-Y',strtotime('now - 2 day'));