> For the complete documentation index, see [llms.txt](https://v5docs.keyfax.biz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://v5docs.keyfax.biz/reference/expression-reference/date-expressions/betweendates.md).

# BetweenDates

Returns `True` when the date in the databox falls between two dates, inclusive of both, ignoring any time part.

| Expression                                 | Databox value        | Result  |
| ------------------------------------------ | -------------------- | ------- |
| `BetweenDates("15-10-2030", Today)`        | `15-10-2027 08:00pm` | `True`  |
| `BetweenDates(Today, "15-10-2030")`        | `15-10-2027 08:00pm` | `True`  |
| `BetweenDates("15-10-2030", "23-10-2010")` | `15-10-2019 08:00pm` | `False` |

The two dates can be given in either order, and either can be `Today` or a date worked out with [DateAdd](/reference/expression-reference/date-expressions/dateadd.md).

This is how you check a date against a window: a warranty, an insurance policy, or whether an enquiry falls before or after a change of policy.
