date_create_from_format function
The date_create_from_format function is also known as DateTime::createFromFormat. This function returns new DateTime object formatted according to the specified format.
Description
public static DateTime DateTime::createFromFormat ( string $format, string $time [, DateTimeZone $timezone ] )
Returns new DateTime object formatted according to the specified format.
Parameters
format
Format accepted by date().
time
String representing the time.
timezone
Time zone.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.