---
version: "2026.1.0"
language: "en"
---
# Set Date/Time

The **Set date/time** building block is used to define a **date/time value** that can be delivered to other building blocks in a flow.

Fully expanded, the **Set date/time** block has the following properties:  
![image-20260130-090912.png](https://docs.leapwork.com/__attachments/a_7c5d3be18efd217b424b2795b7d1f3b334eb4feaabe3dc6d722dc255b96c7c08/image-20260130-090912.png?cb=6694e526276f64850c8ecfd3046b1162)

**Note:** The screenshot on this page uses the **Elegance Design** , introduced in **2025.3**. If you are using an earlier version, your layout may look different.

## Quick-start

1. Drag **Set date/time** onto the canvas.

2. Specify the **Date/time** value, and expand the field if you want to set **Date** and **Time** components separately.

3. Use the resulting value by connecting it to the next block that needs a date/time input, then run the flow when it's ready.

## Building block parameters

Parameters  
* **Block header** : Shows the current title of the block. You can rename it by double-clicking the header text and typing a new title. This block has **no green input or output connectors** in the header because it is not explicitly executed. Instead, it is used to set a date/time value for other blocks.

* **Date/time** : Defines the date/time value. You can specify the individual components (year, month, day, hour, minute, second, and millisecond) and then use either the full date/time value or only the date part or time part. Use the expander controls to work with the components separately.

* **Date** : Available when you expand **Date/time** . Use it when you want to work with only the date portion of the value.

* **Time** : Available when you expand **Date/time**. Use it when you want to work with only the time portion of the value.

## Resources

|                                                **Topic**                                                |                                                  **Description**                                                  |
|---------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------|
| [Flows FAQ](https://docs.leapwork.com/faq/latest/leapwork-flow-faq/flows-faq.md)                                                 | Common questions about creating, running, and managing flows in Leapwork.                                         |
| [Flows Troubleshooting](https://docs.leapwork.com/troubleshooting/latest/leapwork-flow-troubleshooting/flows-troubleshooting.md) | Guidelines and solutions for identifying and fixing issues that occur when building or running flows in Leapwork. |