Calculate a date prior to a date in an event

  • 18 October 2023
  • 1 reply


Hi - I’m looking to calculate a date prior to a date in an event. I know how to use “later” to come up with a future date but i’m looking to get a prior date. For example my event shows the date an upcoming order will be placed. I want to use that date minus 1 day to say you have until X date to edit your order. 




Best answer by stephen.trumble 19 October 2023, 19:09

View original

1 reply

Userlevel 7
Badge +60

Hey @kdoherty 

Welcome to the community and congrats on your first post! Happy to help!

You should be able to try something like:
{{ variable_name '%Y-%m-%d' as expiration }}{{ expiration|days_later:-1 }}

You would just need to change variable_name to whatever the property is.

Let me know if this works for you!