date_add_years
Adds a specified number of years to a date.
Example
1
{{ 2020-01-15 | date_add_years: 1 }} => 2021-01-15
Input
| Type | Parameter | Description | Required |
|---|---|---|---|
| string | date | The date to add years to. Comes before the | sign. | Required |
| int | years | The number of years to add |
Output
| Type | Description |
|---|---|
| string | The new date |