# Date

{% hint style="info" %}
**Block Information**

Available in: Page Flow and Cloud Flow

Toolbox Category: Date/Time

Block Type: [Output](/app-editor/page-flow/block-anatomy.md#output-block)

Output Type: [*object*](/app-editor/page-flow/references/value-types.md)
{% endhint %}

The **`Date`** block creates an [*object*](/app-editor/page-flow/references/value-types.md) representing the current date and time. This block offers flexibility by providing either the current time or the time at the onset of the current day, which is 12 AM (midnight).&#x20;

<div align="left"><figure><img src="/files/h49lpUPdiWt7S1GPX9nQ" alt="" width="171"><figcaption><p>Date block</p></figcaption></figure></div>

The block consists of a [Dropdown configuration setting](/app-editor/page-flow/block-anatomy.md#dropdown) with the following options:

* *Now*: Create's the date object with the current date and the current time.
* *Today*:  Create's the date object with the current date and the time set to 12 AM.

***

## Usage Example

The image below shows an example of the **`Date`** block.&#x20;

<figure><img src="/files/aoJtofcJPLXqTcGnHEKn" alt=""><figcaption><p>Example of Date block</p></figcaption></figure>

Here is the summary of the above example:

* The variable ***`b`*** is set to the output of the **`Date`** block with the *Now* option.
* The [Show Information Popup](/app-editor/page-flow/toolbox-blocks/show-information-popup.md) block is used to show the date/time information in the variable ***`b`*** using the [Text from Date](broken://pages/ECByeMeEW1FJxcUdDXfA) block.

The result of the above example is shown below.

<figure><img src="/files/39QjaEmBrVCFpcAmKOll" alt=""><figcaption><p>Result of the example for Date block</p></figcaption></figure>


---

# 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.zingy.ai/app-editor/page-flow/toolbox-blocks/date.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.
