> 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 block

The **Date** block sends the specified date as the number of milliseconds since the Unix epoch (January 1, 1970).

## Output

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

## Setup

When you add a **Date** block to your flow, it shows the date when it was added. Click the date in the block to open a calendar where you can select a different date.

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

## Example

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

## Related blocks

* You can use the [**Date & Time**](/flows/reference/blocks/date-and-time/) block if you need to include the time along with a date. The **Date** 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.

## Related pages

For a tutorial that uses the **Date** block, see [Calculate the years since a milestone](/flows/tutorials/beginner/calculate-years-since-milestone/).