<?php $ymd = DateTime::createFromFormat('m-d-Y', '10-16-2003');var_dump($ymd);
Standard input is empty
object(DateTime)#1 (3) { ["date"]=> string(26) "2003-10-16 14:28:02.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!