Now

Returns the current date and time in a variety of formats, all in UTC time (i.e. not adjusted for local timezone). Use the Date to Text function to adjust a date to a timezone.

Output Fields

  • date - the full date and time in ISO date format using UTC "Z" notation (e.g. "2016-09-07T16:55:25.670Z")

  • iso - the full date and time in ISO format using offset notation (e.g. "2016-09-07T16:55:25+00:00")

  • full - the expanded date and time in UTC format (e.g. "September 7, 2016 16:55:25.670")

  • minute - the current minute as a number

  • hour - the current hour as a number, in 24 hour time, UTC time

  • time - the current time as a string, in 24 hour time, UTC time

  • day - the current day as a number, in UTC time

  • month - the current month number, in UTC time

  • year - the current year as a number, in UTC time

  • second - the current second as a number

  • millisecond - the current millisecond

Example

When it's 9:55 AM (and 25.670 seconds) in Los Angeles on September 9, 2016, the Now card outputs will have the following values:

  • date - 2016-09-07T16:55:25.670Z

  • iso - 2016-09-07T16:55:25+00:00

  • full - September 7, 2016 16:55:25.670

  • minute - 55

  • hour - 16

  • time - 16:55:25.670

  • day - 9

  • month - 7

  • year - 2016

  • second - 25

  • millisecond - 670

See Also

Functions in Workflows

About the elements of Okta Workflows