I have the following date: 2010-04-19 18:31:27. I would like to convert this date to the dd/mm/yyyy format.
$source = 'your varible name'; $date = new DateTime($source); $_REQUEST["date"] = $date->format('d-m-Y'); echo $_REQUEST["date"];