Per la funzione DATE_FORMAT vai qui

http://database.html.it/articoli/leg...mpo-con-mysql/

ciao