Best way to check for date not in past #4352
-
|
I'd like to check whether a date is not in the past, so today or in the future. What's the best way to do this? But I can't seem to figure out how to either negate this (so NOT is_past) or combine two conditions (is_today OR is_future). Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
duncanmcclean
Oct 1, 2021
Replies: 1 comment 1 reply
-
|
Does this work? {{ if {tour_date | is_future} || {tour_date | is_today} }}I've not tested it so could be completely off but worth a try? 😅 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ronvdc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Does this work?
{{ if {tour_date | is_future} || {tour_date | is_today} }}I've not tested it so could be completely off but worth a try? 😅