I can get the current year in this way:
{% set currentYear = now.year %}
How do I get the next year?
Craft CMS Stack Exchange is a question and answer site for administrators, end users, developers and designers for Craft CMS. It only takes a minute to sign up.
Sign up to join this communityI can get the current year in this way:
{% set currentYear = now.year %}
How do I get the next year?
{% set nextYear = now|date_modify('+1 year')|date('Y') %}
You can also get it with:
{% set nextYear = now.year + 1 %}
.year
property is only actually available in Craft’s extended DateTime class).
– Brandon Kelly
Jun 13 '14 at 20:26