is_date_between

Passes when the date is between from and to (inclusive).

Required arguments

Key(s)DescriptionType
fromThe first date. Dates as MM-DD (every year) or YYYY-MM-DD (one date only); from and to must use the same format.STRING
toThe last date. Dates as MM-DD (every year) or YYYY-MM-DD (one date only); from and to must use the same format.STRING

Example

conditions:
  - id: is_date_between
    args:
      from: 12-20
      to: 01-05