> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://learning.postman.com/llms.txt.

# The Date & Time block

The **Date & Time** block is a data block that sends the specified date and time as the number of milliseconds since the Unix epoch (January 1, 1970).

## Output

The **Date & Time** block's single output port sends the specified date and time as the number of milliseconds since the Unix epoch.

## Setup

When you add a **Date & Time** block to your flow, it shows a placeholder date and time. Click the date and time in the block to open a calendar and clock where you can select a different date and time.

You can [insert](/flows/reference/blocks/overview/#insert-data-blocks-into-other-blocks) the **Date & Time** block into certain blocks instead of connecting them. This makes the selected date and time available to the block it's inserted into. For a list of blocks you can insert the **Date & Time** block into, see [Related blocks](#related-blocks).

## Example

To see the **Date & Time** block in an example flow, check out [Flow Snippets: Date & Time](https://www.postman.com/postman/flows-snippets/flow/63bc6e7782ae416b9e6bc10a).

## Related blocks

* You can use the [**Date**](/flows/reference/blocks/date/) block if you only need a date. The **Date & Time** block can also be inserted into a number of other blocks including the [**Create with AI**](/flows/reference/blocks/create-with-ai/), [**Evaluate**](/flows/reference/blocks/evaluate/), [**If**](/flows/reference/blocks/if/), [**List**](/flows/reference/blocks/list/), [**Record**](/flows/reference/blocks/record/), and [**Template**](/flows/reference/blocks/template/) blocks.