yes. Look at date()
the other thing is a custom function like:
function date_format($indate){
#this assumes the date comes in yyyy-mm-dd and output should be dd-mm-yyyy
$datearray=explode("-",$indate);
#element 0 is year, element 1 is month, element 2 is day
return $datearray[2]."-".$datearray[1]."-".$datearray[0];
}
This should work, but I would still recommend just using date to format it