> ## Documentation Index
> Fetch the complete documentation index at: https://docs.odella.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Date Block

> Select a date value for use in your workflow

## Overview

The Date Block provides a date picker to select a specific date value that can be used in your workflow. The selected date is output in ISO string format.

<Frame>
  <img src="https://mintcdn.com/odella/I7v1Fbrp2kx7rLoj/block-reference/assets/date_light.png?fit=max&auto=format&n=I7v1Fbrp2kx7rLoj&q=85&s=d97f6668e0e8270e4f3be2535f73d1ca" alt="Date Block Screenshot" className="block dark:hidden" width="794" height="816" data-path="block-reference/assets/date_light.png" />

  <img src="https://mintcdn.com/odella/MNHyQg3-ZFMTYSp3/block-reference/assets/date_dark.png?fit=max&auto=format&n=MNHyQg3-ZFMTYSp3&q=85&s=4b28ddf780992ce9703682caa9f7334a" alt="Date Block Screenshot" className="hidden dark:block" width="800" height="804" data-path="block-reference/assets/date_dark.png" />
</Frame>

## Inputs

This block does not have any inputs.

## Outputs

<ResponseField name="data" type="datetime">
  The selected date value in ISO string format.
</ResponseField>

## Editor Settings

<ParamField path="Date" type="datePicker">
  The date value to output. Uses a date picker interface to select a date.
</ParamField>

<ParamField path="Width" type="number" default={300}>
  The width of the block in pixels.
</ParamField>

<ParamField path="Hidden" type="boolean" default={true}>
  Whether the block is hidden in the block menu.
</ParamField>

## Example: Using a Date Block

1. Add a Date Block to your flow
2. Use the date picker to select your desired date
3. Connect the `data` output to another block that accepts datetime values
4. Run the flow. The selected date will be passed to the connected block.

## Error Handling

The Date Block will throw an error if:

* The selected date is invalid
* The date cannot be converted to ISO string format

<Warning>
  Ensure the selected date is valid to avoid errors in blocks consuming the date value.
</Warning>

## FAQ

<AccordionGroup>
  <Accordion title="What format is the date output in?">
    The Date Block outputs dates in ISO string format (e.g. "2024-01-01T00:00:00.000Z").
  </Accordion>

  <Accordion title="Can I input dates programmatically?">
    No, the Date Block only allows date selection through its date picker interface. For programmatic date handling, consider using other blocks that accept date inputs.
  </Accordion>
</AccordionGroup>

## See Also

* [Number Block](/block-reference/data/number)
* [Text Block](/block-reference/data/text)
* [Bool Block](/block-reference/data/boolean)
