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

# BetweenDates

Will compare inclusive of the dates used (ignoring time). This can be arranged in any order e.g. `BetweenDates(Today, "15-10-2010")` or replace `Today` with a date e.g. `BetweenDates("15-10-2010","23-10-2010")`.

<table data-full-width="false"><thead><tr><th width="374">Expression</th><th>Databox Value</th><th width="107">Result</th><th>Comments</th></tr></thead><tbody><tr><td><code>BetweenDates ("15-10-2030",Today)</code></td><td>15-10-2027 08:00pm</td><td>True</td><td>Will compare inclusive of the dates used (ignoring time)</td></tr><tr><td><code>BetweenDates (Today, "15-10-2030")</code></td><td>15-10-2027 08:00pm</td><td>True</td><td>Arguments can be arranged in any order</td></tr><tr><td><code>BetweenDates(“15-10-2030”,”23-10-2010”)</code></td><td>15-10-2019 08:00pm</td><td>False</td><td>Or supply two dates</td></tr></tbody></table>

#### Example

The Expressions above could be used to check whether the date entered by the operator, or the date picked up by the system is before, after or within a time-frame. For example, to check the date of a claim against an insurance policy or warranty, or whether the enquiry is before or after a change in company Policy, to ensure the appropriate action. The example below shows an Expression being tested and returning True or False if an entered date is within range:

<figure><img src="/files/80qe4rzrmWNFd6XUmW07" alt=""><figcaption><p>Example of the BetweenDates expression</p></figcaption></figure>
