Published on : August 18, 2020
Title:php.date_format
Purpose:Return a new DateTime object, and then format the date.
Syntax:[php.date_format p1={template.dn} p2=”Y/m/d” o.set=template.dnew /]
Input Parameter
:p1: date object
p2: format
Return Value:Returns the formatted date as a string. FALSE on failure
Example[php.date_create p1=”2013-03-15″ o.set=template.dn /]
[php.date_format p1={template.dn} p2=”Y/m/d” o.set=template.dnew /]
[template.echo dnew /]