<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content

How to Convert Epoch Time to a Date and Time Object in Okta Workflows

Workflows

Overview

Converting an Epoch or UNIX formatted time to a Date and Time object in Okta Workflows requires using the Text to Date card. Administrators can configure this card to parse UNIX timestamps in milliseconds or seconds into a standard Date and Time object.

Applies To

  • Okta Identity Engine (OIE)
  • Okta Classic Engine
  • Okta Workflows
  • Text to Date card

Solution

How is Epoch time converted to a Date and Time object in Okta Workflows?

Convert Epoch or UNIX time to a Date and Time object in Okta Workflows by configuring the Text to Date card with the appropriate start input and format settings.

  1. Set the start input to the Epoch or UNIX time.
  2. Set the format input to lowercase x for a UNIX in milliseconds timestamp, or uppercase X for a UNIX in seconds format, also known as Epoch or UNIX timestamp.

Review the following example flow demonstrating the configuration of the Text to Date card.

Flow example

Related References

Recommended content

Loading
Okta Support - How to Convert Epoch Time to a Date and Time Object in Okta Workflows