<?php $date = DateTime::createFromFormat('m-d-Y, H:i A', '05-21-2005, 12:27 AM');echo $date->format('Y-m-d H:i:s');
Standard input is empty
2005-05-21 00:27:00
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!