just having a little trouble converting between php time formats... not sure where I am off. Amongst other things, I am changing between 12 and 24 hour time.
$start_time= "02/12/2015 12:00 AM"; //this is a string
$myDateTime = DateTime::createFromFormat('m/d/Y h:i a', $start_time);
$newDateString = $myDateTime->format('Y-m-d H:i');
echo ($newDateString); //empty at the moment
My desired output format is:
2015-02-12 12:00
Sincere thanks for any help. It is greatly appreciated!