Skip to main content
gamegirl92
Contributor III
Contributor III
January 29, 2025
Solved

Dynamically populating date tags in a flow

  • January 29, 2025
  • 2 replies
  • 169 views

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
    Problem Solver III
    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,

    Peace - Turning Emails Into Opportunities 💼 Email Marketing Specialist | 🚀 Klaviyo Expert 📧 amosfolashade2@email.com WhatsApp -+2349023453575 “Delivering the right message, to the right person, at the right time.”
    Mich expert
    Expert Problem Solver II
    Expert Problem Solver II
    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

    (+2348087340172) whatsapp