Áno, asi tak ako píšeš, myslím že takto by to už mohlo byť:$date = strtotime($date); $date = date("d-m-Y H:i:s", $date);