I am using cakephp 2.5.x.
I have the following code in my controller;
$Dates = $this->Model->find('all');
echo json_encode($Dates);
$Dates
contain some dates with the default format being YYYY-mm-dd
. How can I change it such that the format becomes dd-mm-YYYY
?