31% of Part II — dates, conditions, and verifying the result.
3 tasks · this deck covers task 1 of 3
↑ Update Profile Attributes OverviewProfile attribute updates driven by time — contractor term dates, password expiry, review cycles — start with the Date and Time function group in Okta Workflows.
"Now — Calculates the current date and time in various formats, all in UTC time." Every calculation chain that needs "today" starts here, and every downstream comparison inherits that UTC baseline unless you explicitly convert.
This is the core mechanic for a contractor-onboarding scenario: take Now, Add 90 days to get a term end date, or Subtract 7 days from a start date to schedule a reminder.
"Difference — Calculates the difference in time between any two dates." Use this to check how much time remains before an attribute update should fire (e.g., days left until a term end date).
Okta profile attributes and external systems don't always expect the same date representation Workflows computes internally. Date to Text converts a date/time into a provided format in a specified time zone; Text to Date does the reverse, parsing a text string into a date/time per a specified format.
Watch for this in your own sandbox run:
→ Comparing a Now-derived UTC timestamp against a date pulled from a profile attribute in local time without converting first — Difference will silently compare the wrong instants.
→ Reaching for Epoch or ISO/UNIX conversions you don't actually need — most profile-attribute date math only needs Now, Add/Subtract, and Difference.
Sources: help.okta.com — Date and Time Functions (wf/en-us/.../functions.htm#datetime)
Next: Task 2 →