I receive a datetime from a plugin. I put it into a variable:
$datetime = \"20130409163705\";
That actually translates to yyyymm
yyyymm
try this
$datetime = "20130409163705"; print_r(date_parse_from_format("Y-m-d H-i-s", $datetime));
the output:
[year] => 2013 [month] => 4 [day] => 9 [hour] => 16 [minute] => 37 [second] => 5