---
title: " Convert Text To Date Time Step"
url: "https://docs.robotiq.ai/en/article/convert-text-to-date-time-step"
language: "en"
last_updated: "2025-12-24T14:56:41.925Z"
---

#  Convert Text To Date Time Step

The Convert Text To Date Time step changes a text string into a date and time variable. You use this when you have date information as text and need to do things with dates, like calculations or formatting.

## How to Use Convert Text To Date Time

This step takes a text variable and turns it into a date and time variable.

### Step 1: Add the Convert Text To Date Time Step

1.  Drag and drop the "Convert Text To Date Time" step into your process.

### Step 2: Set up the Step

1.  **Step name** (Optional): Give the step a custom name. This helps you find it in your process.
2.  **Source text variable** (Required): Pick an existing text variable that has the date and time text you want to change.
3.  **Date format** (Required): Type in the exact format of the date and time in your source text variable. For example, if your text is "2023-10-26 14:30:00", the format would be "yyyy-MM-dd HH:mm:ss".
4.  **Destination datetime variable** (Required): Choose an existing datetime variable or make a new one. This variable will hold the converted date and time.

## What the Settings Mean

**Step name** (Optional)

-   A custom name for this step in your process.
-   Example: `Convert Order Date`
-   Use it to make your process easier to understand.

**Source text variable** (Required)

-   The text variable that contains the date and time as text.
-   Example: `OrderDateText` (where `OrderDateText` holds "12/25/2023")
-   You need to set up this variable before you use it here.

**Date format** (Required)

-   The specific format of the date and time in your `Source text variable`.
-   Example: `MM/dd/yyyy` for "12/25/2023" or `yyyy-MM-dd HH:mm:ss` for "2023-10-26 14:30:00"
-   This format must exactly match the text you put in for it to convert correctly.

**Destination datetime variable** (Required)

-   The datetime variable where the converted value will go.
-   Example: `OrderDateTime`
-   You can pick an existing datetime variable or create a new one right in this field.

## Related Articles

-   [Convert Date Time To Text Step](https://docs.robotiq.ai/en/article/convert-date-time-to-text-step)
-   [Define Variable Step](https://docs.robotiq.ai/en/article/define-variable-step)
-   [Set Variable Value Step](https://docs.robotiq.ai/en/article/set-variable-value-step)

## Need Help?

Can't find what you're looking for? Join the [Robotiq Community](https://community.robotiq.ai/home/) to get help from other users and the Robotiq team.

![](https://cdn-assets.productfruits.com/f973b1a8-3d7b-4c78-a325-b12b62e61344)
