---
version: "2026.1.0"
language: "en"
---
# Generate date/time

The **Generate date/time** building block generates a date/time value containing the current system date and time.

Fully expanded, the **Generate date/time** block shows the following properties:  
![image-20260207-102706.png](https://docs.leapwork.com/__attachments/a_937c6af68834632a20b4ed384eed05c191ab984e97e5ef3182c802d99542c716/image-20260207-102706.png?cb=b556500ab76236a4c216bd582565c550)

**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 **Generate date/time** onto the canvas.

2. Connect the block in the flow. Trigger it where you need the current date/time, and use **Date/time** later in the flow. Optionally, you can expand and use the individual date and time parts.

3. Run the flow when it's ready.

## Building block parameters

Parameters  
* **Block header** : The green input connector triggers the block to execute and generate the current date/time value. The green output connector triggers when the date/time value has been generated. You can rename the block title ("Generate date/time") by double-clicking it and typing a new title.

* **Date/time** : The current system date/time value. You can expand it to use the individual date and time values separately, including **Year** , **Month** , **Day** , **Hour** , **Minute** , and **Second** (and **Millisecond** where available).

## 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. |