Convert a date variable into another (local) format

 

date("d-m-Y", strtotime($rows['datum']))
date("d-m-Y", strtotime($var))