<!DOCTYPE html>
<html>
<body>

<?php
print_r(date_parse_from_format("mmddyyyy","25092016"));
echo "<br><br>";
print_r(date_parse_from_format("j.n.Y H:iP","25.9.2016 14:35+02:00"));
?>

</body>
</html>