Follow the procedural style in php
<?php
$databaseDate = '2013-09-29 01:02:03';
$date = date_create($databaseDate);
echo date_format($date, 'd-m-y');
?>
You can also try strtotime()
<?php
$queryResultDate = mysqli_query("SELECT column_name FROM table_name"); //selecting the date column
$date = date("d-m-y" , strtotime($queryResultDate));
echo $date;
?>