Its an alias of DateTime::createFromFormat() .
It displays new DateTime object with the specified format
Example
<?php
$date = date_create_from_format(‘j-M-Y’, ’17-May-2012′);
echo date_format($date, ‘Y-m-d’);
?>
Output
2012-05-17
Example
<?php
$date = date_create_from_format(‘j-M-Y’, ’17-May-2012′);
echo date_format($date, ‘Y-m-d’);
?>
Output
2012-05-17