> For the complete documentation index, see [llms.txt](https://docs.inforiver.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.inforiver.com/working-with-inforiver/18.-variables/variable-types/date.md).

# Date

Use the date variable in reports with date dimensions to select a single date.

### 1. Configuration <a href="#id-1.-configuration" id="id-1.-configuration"></a>

This section outlines configurations specific to date variables.

**1.1. Value:** Assign a default value for the date variable.

<figure><img src="/files/9XjBzGbFBTEyilrmFFpX" alt=""><figcaption><p>Date variable creation</p></figcaption></figure>

### 2. Examples <a href="#id-2.-examples" id="id-2.-examples"></a>

**2.1. Filter data**

When you have date dimensions in your reports, you can use date variables to create dynamic filters.

**STEP 1:** Create a date variable with the configuration shown below.

<figure><img src="/files/wIP6apIw2ZPecuqrDb8Z" alt=""><figcaption><p>Create a date variable</p></figcaption></figure>

**STEP 2:** Create an Inforiver filter that references the technical name of the date variable.

<figure><img src="/files/18uzTndQh6UFMR5b0bCI" alt=""><figcaption><p>Create an Inforiver filter</p></figcaption></figure>

**STEP 3:** Select dates from the variable to instantly filter your data.

<figure><img src="/files/ZS09O2WeEWaLIOBs3b6q" alt=""><figcaption><p>Filtering data with date variables</p></figcaption></figure>

**2.2. Set a date in the header**

**STEP 1:** Create a date variable with the configuration shown below.

<figure><img src="/files/6bIKttMn7dTohZH1xXmh" alt=""><figcaption><p>Create variable</p></figcaption></figure>

**STEP 2:** Insert the variable in the header by navigating to the Header\&Footer ribbon > Insert > Variables.

<figure><img src="/files/BAX5RNszEz8weeGOixNn" alt=""><figcaption><p>Inserting a variable in the header</p></figcaption></figure>

**STEP 3:** Users can instantly set a date in the report header by just selecting it from the variable. The header does not have to be edited each time.

<figure><img src="/files/B2LGPZ9QBS6m8zFbKeNI" alt=""><figcaption><p>Setting a header date using variables</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.inforiver.com/working-with-inforiver/18.-variables/variable-types/date.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
