# Dynamic date variable

The dynamic date variable allows you to display custom dates in your HTML-based demos. Whether you need to show today's date, a past date, or a future date, this variable automatically updates it. By displaying real, dynamic dates, you create a more authentic and engaging demo experience.

### How to add a dynamic date variable

{% @guideflow/guideflow-embed requestedUrl="<https://app.guideflow.com/embed/er56gv0b6p>" %}

Follow these steps to add a dynamic date variable to your demo:

* Go to the **HTML editor** and select an element
* Click on **Add variables** and select the **Date variable**
* Choose the **Date format** (or type it in manually) and preview it
* **Add** the variable and see it in preview

### Date offset

Need to show dates in the past or future? You can offset the date by days, weeks, months, and years. Simply toggle on the **offset** and specify the number (use negative numbers to show past dates). For example, offsetting by 1 year will display the date one year from today.


---

# 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.guideflow.com/help/variables/dynamic-date-variable.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.
