> 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/premium-table/working-with-premium-table/10.-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="https://content.gitbook.com/content/sB9HAei8v4FfKkH9M4gw/blobs/fOoZbwiEvssS80l08iiS/image.png" alt=""><figcaption><p>Date variable creation</p></figcaption></figure>

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

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

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

<figure><img src="https://2428652681-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsB9HAei8v4FfKkH9M4gw%2Fuploads%2Fb4LMPOvuILFVbOS2QT8a%2Fimage.png?alt=media&amp;token=cc96c531-704d-49ca-a06f-0f8f9d65983f" alt=""><figcaption><p>Create a date variable</p></figcaption></figure>

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

<figure><img src="https://2428652681-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsB9HAei8v4FfKkH9M4gw%2Fuploads%2F7ES1uBIaoPdyzBPUEHaD%2Fimage.png?alt=media&amp;token=d0ce3d00-c53a-4e11-880f-4d5b177ec005" alt=""><figcaption><p>Insert the date 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="https://2428652681-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsB9HAei8v4FfKkH9M4gw%2Fuploads%2FiGhhxsb5v7ByQXHQvYMt%2FUntitled%20Project.gif?alt=media&amp;token=f13ffe2d-f17a-4083-9598-0b3859f35c13" alt=""><figcaption><p>Set the date in the header with 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
