Hello,
I have a php code snippet.
global $dal, $strTableName;
echo "Info weekend:
";
if ($_SESSION[$strTableName."_masterkey1"])
{
$tblOrders = $dal->Table("tbldata_conferenties");
$rs = $tblOrders->Query("ID=".$_SESSION[$strTableName.
"_masterkey1"],"");
if ($data = db_fetch_array($rs))
{
echo "Van: ".$data["Datum_van"]."
";
echo "Tot: ".$data["Datum_tot"]."
";
}
}
["Datum_van"] and ["Datum_tot"] shows a date field with the format yyyy-mm-dd. I want to change it in the format dd-mm-yyyy. How do I do this ?