$data_esame_gg = substr($_POST['data_esame'],8,2);
$data_esame_mm = substr($_POST['data_esame'],5,2);
$data_esame_aa = substr($_POST['data_esame'],0,4);
$data_prenotazione_gg = substr($_POST['data_prenotazione'],8,2);
$data_prenotazione_mm = substr($_POST['data_prenotazione'],5,2);
$data_prenotazione_aa = substr($_POST['data_prenotazione'],0,4);
$timestamp_esame = mktime (0,0,0,$data_esame_mm, $data_esame_gg, $data_esame_aa);
$timestamp_prenotazione = mktime (0,0,0,$data_prenotazione_mm, $data_prenotazione_gg, $data_prenotazione_aa);
$num_secondi_accettabili = 2*24*60*60;
if ($timestamp_esame - $timestamp_prenotazione > $num_secondi_accettabili)