I’m currently building some flows for VIP customers and I want to insert the expiry date underneath the coupon code. The date will be one year from when they receive the email, anyone know how to do this?
Solved
Inserting Expiry date into email

Best answer by Paul S
Hi
So what you can do is insert a tag underneath the coupon in your template. In your case, since the coupon is meant to expire one year from when they receive the email you could use the following tag in your template beneath the coupon:
{% today '%Y-%m-%d' as today %} {{ today|days_later:365 }}
So for example, {% today '%Y-%m-%d' as today %} would return the format 2021-02-12
Note the date needs to be in the format '%Y-%m-%d' OR '%Y-%m-%dT%H:%M:%S' OR '%m-%d-%Y'
Reply
Rich Text Editor, editor1
Editor toolbars
Press ALT 0 for help
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.