# Date

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

Available in: Page Flow and Cloud Flow

Toolbox Category: Date/Time

Block Type: [Output](https://docs.zingy.ai/app-editor/block-anatomy#output-block)

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

The **`Date`** block creates an [*object*](https://docs.zingy.ai/app-editor/page-flow/references/value-types) 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="https://3401585094-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmnBepgycwgisXr9ya1N4%2Fuploads%2FtF8dqhoEgB3kBYKr3n6i%2Fimage.png?alt=media&#x26;token=692f795d-baf8-4c1a-a2d1-067f59a72a87" alt="" width="171"><figcaption><p>Date block</p></figcaption></figure></div>

The block consists of a [Dropdown configuration setting](https://docs.zingy.ai/app-editor/block-anatomy#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="https://3401585094-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmnBepgycwgisXr9ya1N4%2Fuploads%2FW7K7yRGbgFQUTowI5GqG%2Fimage.png?alt=media&#x26;token=5fc3c749-9b5a-4d04-b084-0b06294542a6" 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](https://docs.zingy.ai/app-editor/page-flow/toolbox-blocks/show-information-popup) block is used to show the date/time information in the variable ***`b`*** using the [Text from Date](https://docs.zingy.ai/app-editor/page-flow/toolbox-blocks/broken-reference) block.

The result of the above example is shown below.

<figure><img src="https://3401585094-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmnBepgycwgisXr9ya1N4%2Fuploads%2F76XnE8WZIBrcfObimAHG%2Fimage.png?alt=media&#x26;token=0777868d-28ca-41a0-aece-a064dc5442df" alt=""><figcaption><p>Result of the example for Date block</p></figcaption></figure>
