Skip to main content

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?

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,


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