+
+# parsing YYYY-MM-DD formatted strings
+is(DateTime->from_ymd(), undef, "no argument results in undef");
+is(DateTime->from_ymd(''), undef, "empty argument results in undef");
+is(DateTime->from_ymd('chunky bacon'), undef, "invalid argument results in undef");
+is(DateTime->from_ymd('2014-06-23'), $mon_012345->clone->truncate(to => 'day'), "2014-06-23 is parsed correctly");
+is(DateTime->from_ymd('2014-06-23')->strftime('%H%M%S'), '000000', "2014-06-23 is parsed correctly");
+
+# parsing YYYY-MM-DDTHH:MM:SS formatted strings
+is(DateTime->from_ymdhms(), undef, "no argument results in undef");
+is(DateTime->from_ymdhms(''), undef, "empty argument results in undef");
+is(DateTime->from_ymdhms('chunky bacon'), undef, "invalid argument results in undef");
+is(DateTime->from_ymdhms('2014-06-23T01:23:45'), $mon_012345, "2014-06-23T01:23:45 is parsed correctly");
+is(DateTime->from_ymdhms('2014-06-23 01:23:45'), $mon_012345, "2014-06-23 01:23:45 is parsed correctly");