Modifier: is_between


Returns true if a date variable is between two other dates. Those dates can be the name of other variables or literal date strings.

date: November 15 2015
start_date: July 4 2015
end_date: December 1 2015
{{ if date | is_between:start_date:end_date }}
true

Additional Reading

Learn how to use and chain modifiers in the Antlers template guide.

Last modified on March 31, 2016