Great Scott! What Year Is It?
If you were Marty from Back to the Future, and need to know the current year and date, then you’re in luck. There’s a programmatic way to show the current date, month, or year. Follow along!
Ever year, the shuffle of a thousand marketers begrudgingly has to update the footer of their template to bump it up by one year. If the date is in a universal content block, then this seems rather painless as any template using it will be updated in one change. It’s always fun to see which brands “forgot” to do this, or when they will catch it in the new year.
And trust me, even the best brands can overlook this – look what I found in 2026!

Template Code to Show the Current Year
However, a better way to do it is to use template variable that will always show the current year instead of manually updating it at each year. The syntax for that is very simple:
{% now "Y" %}Common Klaviyo Date and Time Formats
| January 10, 2026 | {% now “F d, o” %} |
| 10 January 2026 | {% now “d F o” %} |
| 01-10-2026 | {% now “m-d-Y” %} |
| 10-01-2016 | {% now “d-m-Y” %} |
| 1/20/26 (no leading 0s) | {% now “n/j/y” %} |
| 20/1/26 (no leading 0s) | {% now “j/n/y” %} |
| Jan 20 | {% now “M d” %} |
| 20 Jan | {% now “d M” %} |
| 01-20-2026 4:46:08 | {% now “m-d-Y g:i:s” %} |
| 01-20-2026 4:46 p.m. | {% now “m-d-Y g:i a” %} |
| 01-26-2026 4:46 PM | {% now “m-d-Y g:i A” %} |
Now, you’re good from now until the future!
Recent Posts
How to Disable or Enable the Double Opt-in Process in Klaviyo
What is "Double Opt-in" and how to disable it in Klaviyo.
How to A/B Test the Sending Time of Campaigns in Klaviyo
Learn how to A/B test the sending time of campaigns in Klaviyo.

