Skip to main content
Solved

Dynamically populating date tags in a flow


gamegirl92
Contributor I
Forum|alt.badge.img+6

Hi everyone! I want to inform my customers that a coupon code that I am giving them will be expiring six months from the day I gave it to them. This is sent via an email in a VIP flow. So for example, instead of just saying “This code will expire in 6 months”, it will say “This code will expire on MONTH/DAY/YEAR. Can Klaviyo dynamically populate this date field via a date tag? If so, how?

Best answer by Mich expert

Hi ​@gamegirl92 ,

Yes! You can dynamically populate the expiration date using Liquid tags in Klaviyo.

Use this in your email template:
👉 This code will expire on {{ now | plus_months: 6 | date: "%B %d, %Y" }}

This will automatically calculate and format the date as "July 29, 2025" (6 months from today). 🚀

If this seems complicated, feel free to message me, and I’ll be happy to help!

Best regard,
Michael

View original
Did this topic or the replies in the thread help you find an answer to your question?

2 replies

Amos Peace
Problem Solver III
Forum|alt.badge.img+5
  • Problem Solver III
  • 47 replies
  • January 29, 2025

Hello ​@gamegirl92,

Yes, Klaviyo allows you to dynamically populate a date field using its template tags and variables.

Since the coupon expiration date is always 6 months from the issue date, you can use Klaviyo’s built-in date manipulation filters to calculate and display the correct expiration date.

 

Use this Liquid code in your email template (Ensure your email template supports Liquid logic):

This code will expire on {{ now | plus_months: 6 | date: "%B %d, %Y" }}.

This automatically adds 6 months to the current date and formats it as "January 29, 2025." 🚀

 

Best Regards,


Mich expert
Problem Solver IV
Forum|alt.badge.img+11
  • Problem Solver IV
  • 64 replies
  • Answer
  • January 29, 2025

Hi ​@gamegirl92 ,

Yes! You can dynamically populate the expiration date using Liquid tags in Klaviyo.

Use this in your email template:
👉 This code will expire on {{ now | plus_months: 6 | date: "%B %d, %Y" }}

This will automatically calculate and format the date as "July 29, 2025" (6 months from today). 🚀

If this seems complicated, feel free to message me, and I’ll be happy to help!

Best regard,
Michael