constant
Found a typo or an error? Open a ticket.
Need support or have a technical question? Post to the user mailing-list.
constant returns the constant value for a given string:
{{ some_date|date(constant('DATE_W3C')) }} {{ constant('Namespace\\Classname::CONSTANT_NAME') }}