Published on : August 18, 2020
Title | : | php.date_create_from_format |
Purpose | : | Return a new DateTime object formatted according to the specified format. |
Syntax | : | [php.date_create_from_format p1=”j-M-Y” p2=”15-Mar-2013″ o.set=template.date /] |
Input Parameter | : | p1: Specifies the format to use p2: Time p3: Timezone(optional) |
Return Value | : | Returns a new DateTime object on success. FALSE on failure |
Example | [php.date_create_from_format p1=”j-M-Y” p2=”15-Mar-2013″ o.set=template.date /] |