> 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/scripts/questions/date-and-time.md).

# Date and time

A date, a time, or both together.

<figure><img src="/files/4lv75lGRYxBI9NjyxtfA" alt="A date and time question open in the editor"><figcaption><p>A date and time question and its options</p></figcaption></figure>

## Options

Choose whether you are asking for a date, a time, or both — asking for more than you need is the most common mistake here.

**Earliest** and **latest** bound what will be accepted. They are what stops a reported incident being dated next year, and they can be worked out from today rather than fixed, so the bound stays correct without maintenance.

The clock setting decides whether times are offered as 12-hour or 24-hour.

## Using the answer

A date answer can be compared, shifted and formatted with the [date expressions](/reference/expression-reference/date-expressions.md) — `After`, `Before`, `BetweenDates` and `DateAdd` between them cover most of what a script needs to ask about a date.
