---
title: "DateTime Connector"
slug: "datetime-connector"
description: "Use the Date/Time connector in Lansweeper Flow Builder to work with date and time values, get the current time, convert time zones, and more."
updated: 2026-07-17T15:43:56Z
published: 2026-06-12T14:43:48Z
canonical: "docs.lansweeper.com/datetime-connector"
---

> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lansweeper.com/llms.txt
> Use this file to discover all available pages before exploring further.

# DateTime Connector

Note on third‑party tools

              

We aim to provide accurate and helpful details about third‑party tools, but we can’t guarantee that this information is always complete or up to date. If you notice any discrepancies, feel free to share them in the feedback section below. For the most reliable information, please always refer to the third‑party tool’s official documentation.

The **Date/Time** component is a collection of actions for working with Date/Time values. You can fetch the current time, convert timestamps between time zones, and more.

## Actions

### Adjust Date/Time

Add/Remove the specified seconds, minutes, hours, and days from the specified Date/Time

| Input | Comments | Default |
| --- | --- | --- |
| Date/Time | A reference to a JavaScript Date object or an ISO timestamp string |  |
| Seconds | Specifies the number of seconds to use for adjusting the associated Date/Time |  |
| Minutes | Specifies the number of minutes to use for adjusting the associated Date/Time |  |
| Hours | Specifies the number of hours to use for adjusting the associated Date/Time |  |
| Days | Specifies the number of days to use for adjusting the associated Date/Time |  |

### Convert Date/Time To ISO String

Convert the given Date/Time to an ISO string

| Input | Comments | Default |
| --- | --- | --- |
| Date/Time | A reference to a JavaScript Date object or an ISO timestamp string |  |
| Time Zone | Specifies the timezone to use for converting to a localized ISO timestamp string |  |

### Convert Date/Time To Local ISO String

Convert the given Date/Time to an ISO string in local time using specified timezone

| Input | Comments | Default |
| --- | --- | --- |
| Date/Time | A reference to a JavaScript Date object or an ISO timestamp string |  |
| Time Zone | Specifies the timezone to use for converting to a localized ISO timestamp string |  |

### Convert Date To Epoch

Convert the given Date to a seconds/milliseconds Epoch.

| Input | Comments | Default |
| --- | --- | --- |
| Date/Time | A reference to a JavaScript Date object or an ISO timestamp string |  |
| Display Epoch In Seconds | If true, action will format the given date to Epoch time in seconds instead of milliseconds. | false |

### Convert Epoch Timestamp To Date

Convert the given Epoch timestamp to a ISO String Date.

| Input | Comments | Default |
| --- | --- | --- |
| Epoch Timestamp | The epoch timestamp you would like to convert to a date. |  |
| Epoch Timestamp in Seconds | If true, action will assume the given timestamp is in seconds instead of milliseconds. | false |

### Format Date/Time

Change the format of a timestamp given a format string

| Input | Comments | Default |
| --- | --- | --- |
| Date/Time | A reference to a JavaScript Date object or an ISO timestamp string |  |
| Time Zone | Specifies the timezone to use for converting to a localized ISO timestamp string | etc/UTC |
| Format | The format of timestamp you would like. Use YYYY for year, MM for month, DD for day, HH for 24 hour, hh for 12 hour clock, mm for minute, ss for second, SSS for milliseconds and Z for timezone offset. | YYYY-MM-DDTHH:mm:ss.SSSZ |

### Get Current Date/Time

Return the current Date/Time in UTC

| Input | Comments | Default |
| --- | --- | --- |
| Display Epoch In Seconds | If true, the current Date/Time will be displayed in seconds. | false |
