<p>You can also get it with:</p>

<pre><code>{% set nextYear = now.year + 1 %}
</code></pre>

CC BY-SA 3.0
2014-06-13T20:20:37.530Z
It is really simplier! (best) But I won't unaccept first answer in order not to be rude.
nicael
CC BY-SA 3.0
2014-06-13T20:26:05.087Z
No arguments there! Christian’s is a good answer too – certainly more flexible, and something that could be done with “pure Twig” (the `.year` property is only actually available in Craft’s extended DateTime class).
Brandon Kelly
CC BY-SA 3.0
2014-06-13T20:31:23.913Z
Thanks for clarification! For the future: If I am not an autor of a post, I don't get notified if you comment, so you should add @nicael.
nicael
CC BY-SA 3.0
2014-06-13T20:32:43.067Z
@nicael Nice, I didn’t know SE had @ mention support.
Brandon Kelly
CC BY-SA 3.0
2014-06-13T20:33:52.267Z
Now I got notified. All right! =)
nicael
CC BY-SA 3.0
2014-06-13T20:47:09.683Z
Which makes the better answer if the question itself doesn't imply a preference for succinctness vs. flexibility?
Matt Stein
CC BY-SA 3.0
2014-06-13T20:47:38.303Z
I read somewhere that you can only notify users in the same "comments thread". Too bad, a @Brandon could come handy in deserted questions! :)
carlcs
CC BY-SA 3.0
2014-06-13T20:50:34.250Z
@ChristianSeelbach that's what bounties are for ;)
Brandon Kelly
CC BY-SA 3.0
2014-06-13T20:16:23.950Z
2014-06-13T20:16:23.950Z
Brandon Kelly
<pre><code>{% set nextYear = now|date_modify('+1 year')|date('Y') %}
</code></pre>

CC BY-SA 3.0
2014-06-13T19:57:58.720Z
You're too fast, Christian.
Matt Stein
CC BY-SA 3.0
2014-06-13T20:28:09.757Z
Brandon's answer is great if you're only adjusting the year (as the original question asks). But if any adjustments need to be made to the month or day, this answer would work better.
Lindsey D
CC BY-SA 3.0
2014-06-13T19:57:02.177Z
2014-06-13T19:57:02.177Z
carlcs
<p>I can get the current year in this way:</p>

<pre><code>{% set currentYear = now.year %}
</code></pre>

<p>How do I get the next year?</p>

<templating><datetime>
How do I get the next year?
# How do I get the next year?

(Asked by: username_0 on 2014-06-13)

I can get the current year in this way:
{% set currentYear = now.year %}

How do I get the next year?

**Tags:** templating, datetime

---

## 2 answers

### Answer by username_3 on 2014-06-13. Score: 10 | Accepted answer

{% set nextYear = now|date_modify('+1 year')|date('Y') %}

> **Comments:**
> **username_2**: You're too fast, Christian.  
> **username_4**: Brandon's answer is great if you're only adjusting the year (as the original question asks). But if any adjustments need to be made to the month or day, this answer would work better.  

---

### Answer by username_1 on 2014-06-13. Score: 11

You can also get it with:
{% set nextYear = now.year + 1 %}

> **Comments:**
> **username_0**: It is really simplier! (best) But I won't unaccept first answer in order not to be rude.  
> **username_1**: No arguments there! Christian’s is a good answer too – certainly more flexible, and something that could be done with “pure Twig” (the `.year` property is only actually available in Craft’s extended DateTime class).  
> **username_0**: Thanks for clarification! For the future: If I am not an autor of a post, I don't get notified if you comment, so you should add @nicael.  
> **username_1**: @nicael Nice, I didn’t know SE had @ mention support.  
> **username_0**: Now I got notified. All right! =)  
> **username_2**: Which makes the better answer if the question itself doesn't imply a preference for succinctness vs. flexibility?  
> **username_3**: I read somewhere that you can only notify users in the same "comments thread". Too bad, a @Brandon could come handy in deserted questions! :)  
> **username_1**: @ChristianSeelbach that's what bounties are for ;)  

---

