nel codice è possibile anche usare date_format?



non capisco perchè cosi scritto mi accetta solo le date impostate con es. 2012-12-05
e non con 05/12/2012
forse sbaglio nel punto in cui richiamo la data con l'echo:

echo "<tr><td >".($row['giorno']) etc....?

Grazie mille
qui di seguito la parte del codice:

$result=mysql_query("select date_format(date,'%d/%m/%Y')as giorno,MONTH(date) AS mese,avg(temp),avg(umidita),avg(20-(temp)) as gradigiorno from TABELLA2
WHERE date BETWEEN '$data1' AND '$data2' group by giorno order by date desc limit 1000");

/ prepara intestazione tabella //
echo "<table style='text-align:center'><tr ><th width='100px'>Giorno</th><th width='100px'>Temperatura</th><th width='100px'>Umidità</th><th width='100px'>Gradigiorno</th></tr>";

while($row = mysql_fetch_assoc($result))

{

// crea riga tabella//
echo "<tr><td >".($row['giorno'])."</td><td>".number_format(($row['avg(temp)']),2)."</td><td>".number_format(($row['avg(umidita)']),2)."</td><td>".number_format(($row['gradigiorno']),2)."</td></tr>";
}