# Dynamic copyright year in email template

**URL:** <https://community.auth0.com/t/dynamic-copyright-year-in-email-template/60213>\
**Category:** Get Help\
**Tags:** email, email-template, password-reset, auth0\
**Created:** [March 28, 2021, 11:21pm UTC](https://community.auth0.com/t/dynamic-copyright-year-in-email-template/60213 "2021-03-28T23:21:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![shuhei.nakahodo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/shuhei.nakahodo/32/28438_2.png) [@shuhei.nakahodo](https://community.auth0.com/u/shuhei.nakahodo)\
**Post date:** [March 28, 2021, 11:21pm UTC](https://community.auth0.com/t/dynamic-copyright-year-in-email-template/60213/1 "2021-03-28T23:21:16Z")

</div>

Hi,

In the project I’m working on recently, I created an email template in Auth0 for password reset, which has a footer area like this:

```
<p>
    © 2021 CompanyName
</p>

```

I’m trying to make “2021” part dynamic based on the current timestamp so that I don’t have to go into Auth0 dashboard every year and hardcode the year (Likely I’ll forget to do it). Ideally I want to use a variable and make it like:

```
<p>
    © {{current_year}} CompanyName
</p>

```

However, this doesn’t seem to be possible from what is provided in templates:

> **[Customize Email Templates](https://auth0.com/docs/customize/email/email-templates)**
>
> Learn how to customize your emails with Liquid templating syntax.

Is this actually achievable? If not, what would be the best way to make the year dynamic?

---

<div class="post-metadata">

**Author:** ![ricardo.batista](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ricardo.batista/32/7711_2.png) [@ricardo.batista](https://community.auth0.com/u/ricardo.batista)\
**Post date:** [March 29, 2021, 7:43am UTC](https://community.auth0.com/t/dynamic-copyright-year-in-email-template/60213/2 "2021-03-29T07:43:45Z")

</div>

Hi @shuhei.nakahodo

Since the email templates are based on the Liquid syntax, to get the current year you can do:

> {{ “now” | date: “%Y” }}

You can also read more about the Liquid syntax here: [Use Liquid Syntax in Email Templates](https://auth0.com/docs/auth0-email-services/customize-email-templates/use-liquid-syntax-in-email-templates)

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [March 29, 2021, 7:54am UTC](https://community.auth0.com/t/dynamic-copyright-year-in-email-template/60213/3 "2021-03-29T07:54:18Z")

</div>

Thanks for helping on this one Ricardo!

---

<div class="post-metadata">

**Author:** ![shuhei.nakahodo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/shuhei.nakahodo/32/28438_2.png) [@shuhei.nakahodo](https://community.auth0.com/u/shuhei.nakahodo)\
**Post date:** [April 11, 2021, 11:02pm UTC](https://community.auth0.com/t/dynamic-copyright-year-in-email-template/60213/4 "2021-04-11T23:02:09Z")

</div>

@ricardo.batista Thanks for replying to this thread. The syntax is working for me as expected which is awesome! Thanks a lot for the help.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [April 12, 2021, 6:54am UTC](https://community.auth0.com/t/dynamic-copyright-year-in-email-template/60213/5 "2021-04-12T06:54:32Z")

</div>

Great! We are here for you!

---

<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:** [April 27, 2021, 6:54am UTC](https://community.auth0.com/t/dynamic-copyright-year-in-email-template/60213/6 "2021-04-27T06:54:43Z")

</div>

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