# 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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.keyfax.biz/product-suite/admin/databox-expressions/date-expressions/betweendates.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
