codice:
$_POST['data'] = '31/12/2004';
list($giorno, $mese, $anno) = explode('/', $_POST['data']);
$data_db = "$anno-$mese-$giorno";