How do i formatt the dates do the come out as DD/MM/YYYY please
<?php
$convar = mysqli_connect("localhost","root","","ffp_calendar");
if(mysqli_connect_errno())
{
echo "Error occured while connecting with the database ".mysqli_connect_errno();
}
$sqlvar = "SELECT * FROM `calendar` WHERE `CurrentDate` = curdate()";
$resultvar = mysqli_query($convar, $sqlvar) or die("Bad Query: $sql");
while($rowvar = mysqli_fetch_assoc($resultvar)) {
$todaysdate = ($rowvar['CurrentDate']);
$weekdate = ($rowvar['WeekStartDate']);
$perioddate = ($rowvar['PeriodStartDate']);
echo "<strong>Today's Date</strong>{$todaysdate}</br>";
echo "<strong>This Week's Start Date</strong>{$weekdate}</br>";
echo "<strong>This Week's Start Date</strong>{$perioddate}</br>";
}
?>