how to splite date and time in php code example
Example 1: separate date from datetime php
date('Y-m-d', strtotime( '2015-04-16 15:00:01' ) );
Example 2: separate date from datetime php
$time = new DateTime("2011-08-04 15:00:01");
$date = $time->format('n.j.Y');
$time = $time->format('H:i');