# Date from Text

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

<div align="left"><figure><img src="https://3401585094-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmnBepgycwgisXr9ya1N4%2Fuploads%2FRpkEhTkgxDxGTyU9r0cM%2Fimage.png?alt=media&#x26;token=944891b7-a795-48dc-af8a-01fa3c6c1345" alt="" width="363"><figcaption><p>Date from Text 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.
