Skip to main content
Solved

Dynamically populating date tags in a flow

  • January 29, 2025
  • 2 replies
  • 64 views

gamegirl92
Contributor III
Forum|alt.badge.img+7

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

2 replies

Amos Peace
Problem Solver III
Forum|alt.badge.img+6
  • Problem Solver III
  • 62 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
Expert Problem Solver II
Forum|alt.badge.img+11
  • Expert Problem Solver II
  • 63 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