# Date from Text

{% 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 from Text`** block creates an [*object*](/app-editor/page-flow/references/value-types.md) representing the date and time based on a text value and an optional format.

<div align="left"><figure><img src="/files/yGsL8SklahQoe97MLPLL" alt="" width="363"><figcaption><p>Date from Text 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.


---

# 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-from-text.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.
