# Email template current year liquid syntax

**URL:** <https://community.auth0.com/t/email-template-current-year-liquid-syntax/64077>\
**Category:** Get Help\
**Tags:** liquid-syntax, email-template\
**Created:** [June 8, 2021, 9:37am UTC](https://community.auth0.com/t/email-template-current-year-liquid-syntax/64077 "2021-06-08T09:37:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![christoffer](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/christoffer/32/12821_2.png) [@christoffer](https://community.auth0.com/u/christoffer)\
**Post date:** [June 8, 2021, 9:37am UTC](https://community.auth0.com/t/email-template-current-year-liquid-syntax/64077/1 "2021-06-08T09:37:13Z")

</div>

Hi, i’m trying to insert a dynamic year referece in my email template footer.

in this post [Dynamic copyright year in email template](https://community.auth0.com/t/dynamic-copyright-year-in-email-template/60213) it dosen’t seem that hard, but i can’t get it to work with  
{{ “now” | date: “%Y” }}

Any ideas?

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [June 8, 2021, 8:11pm UTC](https://community.auth0.com/t/email-template-current-year-liquid-syntax/64077/2 "2021-06-08T20:11:26Z")

</div>

Hi @christoffer,

Welcome to the Community!

I just tested it and was able to get this to work:

```auto
{{ "now" | date: "%Y" }}

```

Can you try typing it in manually and not with copy and paste? For some reason that was causing an issue for me.

---

<div class="post-metadata">

**Author:** ![christoffer](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/christoffer/32/12821_2.png) [@christoffer](https://community.auth0.com/u/christoffer)\
**Post date:** [June 9, 2021, 5:46am UTC](https://community.auth0.com/t/email-template-current-year-liquid-syntax/64077/3 "2021-06-09T05:46:34Z")

</div>

Works like a charm when i wrote it instead of copying it!

Tough one to crack. Nice job cracking it and thanks for the quick response!

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [June 9, 2021, 3:11pm UTC](https://community.auth0.com/t/email-template-current-year-liquid-syntax/64077/4 "2021-06-09T15:11:37Z")

</div>

No problem! Let us know if you run into anything else 😄

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [June 24, 2021, 3:12pm UTC](https://community.auth0.com/t/email-template-current-year-liquid-syntax/64077/5 "2021-06-24T15:12:33Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
