Adds or subtracts a specified number of days, weeks or months to/from a date.
Example 1:
{% if dateAdd(matter.application.date, '+', '6', 'WEEK') > matter.grant.date %}
{# Do something #}
{% endif %} |
Example 2:
{# 5 years after application date #}
{{ dateAdd(matter.application.date, '+', '60', 'MONTH') }} |
Example 3:
{% if 1 == 1 %}
{{ dateAdd(matter.application.date, '-', '10', 'DAY') }}
{% endif %} |