date()

The date() function is a shorthand method of instantiating a new Date Object. It also allows you to use dates within Output tags e.g.


    {{ date() }} // 12 Aug 2020
    
    {{ date('tomorrow') }} // 13 Aug 2020
    
    {{ date().year }} // 2020
    
    {{ date().time }} // 19:33

This in turn means that the date object can be instantiated for limited use from within an editable region in the CMS.

The arguments accepted for the date() function are the same as those for the Date Object's construct.

COVID-19 NOTICE – Business as Usual
Evance continues to provide all services and support throughout this difficult period. See our full statement here .