Ricordo che una volta ho fatto così: $sql= "SELECT substring(campo_data, 1,4) FROM tuatabella"; se ti può servire !
Regole del Forum