separate date from datetime php

Solutions on MaxInterview for separate date from datetime php by the best coders in the world

showing results for - "separate date from datetime php"
Matteo
03 Feb 2020
1$time = new DateTime("2011-08-04 15:00:01");
2$date = $time->format('n.j.Y');
3$time = $time->format('H:i');
Martin
14 Feb 2017
1date('Y-m-d', strtotime( '2015-04-16 15:00:01' ) );