How to Convert Epoch Time to a Date and Time Object in Okta Workflows
Last Updated:
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.
- Set the start input to the Epoch or UNIX time.
- 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.
