# 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://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FdCnbGVC55lViQoleO6Mt%2Fimage.png?alt=media&#x26;token=1c8e6530-dc26-49e5-9bbe-71447b243e80" 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="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FapxAYmVNVa93yThJLQvX%2Fimage.png?alt=media&#x26;token=66658f88-57bb-41a7-b9ef-11c0dcf69b87" 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="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FrGSfIKhc1W4a7EhZzXqW%2Fimage.png?alt=media&#x26;token=93100d54-add9-4808-944c-21e75d05c648" 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="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FnqfnNDxNPUHgU0rNDD13%2FUntitled%20Project.gif?alt=media&#x26;token=564d4aac-0d20-4eb7-b07f-d97d9263f3ba" 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="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2Fr94UNhq6hJKDPkTnGONz%2Fimage.png?alt=media&#x26;token=ae3694ad-8e56-419f-aa76-3c5d569ac4dd" 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="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FNESttWivPL9PHUEtTzIs%2Fimage.png?alt=media&#x26;token=d014f3dc-f66d-41b9-8728-6f41e378fd60" 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="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FAmy23pYJz60t0pi3MME2%2FUntitled%20Project.gif?alt=media&#x26;token=c2aa591a-e7fc-4152-aa38-158726d40275" alt=""><figcaption><p>Setting a header date using variables</p></figcaption></figure>
