What am I doing wrong?
I've stored the date in american format (yyyy-mm-dd) and want to output it in european format (dd-mm-yyy).
This is my code.
//ZENDING
$result = mysql_query("select ID, Bestemming, Afkorting, Datum FROM Zendingen WHERE ID ='" . $znding . "' ORDER BY ID, Bestemming ASC") OR DIE ( mysql_error() );
while($row = mysql_fetch_array($result))
{
$datumzending = $row['Datum'];
echo $row['Bestemming'];
echo date("Y-m-d",$datumzending);
echo "<br />";
echo "<br />";
}
Thanks in advance!