<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 Workflows

Workflows

Overview

This article explains how to convert an Epoch or UNIX formatted time to a Date & Time object in workflows using the Text to Date card.

Applies To

  • Okta Workflows
  • Text to Date card

Solution

The Text to Date card can be used to convert Epoch or UNIX time to a Date & Time object in Workflows. 

  1. Set the start input to the Epoch/UNIX time.
  2. Set the format input to:
    1. Lowercase x for a "unix in milliseconds" timestamp.
    2. Uppercase X for a "unix in seconds" format, also known as "epoch" or "unix timestamp".


Flow example 

 

Related References

Recommended content

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