Convert to date format dd/mm/yyyy
If your date is in the format of a string use the explode function
array explode ( string $delimiter , string $string [, int $limit ] )//In the case of your code$length = strrpos($oldDate," ");$newDate = explode( "-" , substr($oldDate,$length));$output = $newDate[2]."/".$newDate[1]."/".$newDate[0];
Hope the above works now