Codice PHP:
$data '2008-12-02';
list(
$anno,$mese,$giorno) = explode('-',$data);
echo 
$giorno.'-'.$mese.'-'.$anno