<?php $d = '2014-09-21 12:00:00'; $di = strtotime($d); $dd = new DateTime(date('Y-m-d 0:0:0', $di)); echo $dd->format('d-m-Y');
You have javascript disabled. You will not be able to edit any code.