Email template current year liquid syntax

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

in this post Dynamic copyright year in email template it dosen’t seem that hard, but i can’t get it to work with
{{ “now” | date: “%Y” }}

Any ideas?

Hi @christoffer,

Welcome to the Community!

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

{{ "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.

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!

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

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