Use these utility steps to calculate current date and time durations. Below are examples of each step's input and output.
Calculate time duration
Calculate the time from the Date to the present, and return it in the DATE_FORMAT you defined.
Date_Format
%Y-%m-%dT%H:%M:%S
Date
2006-08-29T23:59:11
Output
138422h29m13.895503549s
Convert date
Converts the given date to the specified new date format.
Date
2006-01-02T15:04:05Z
Current date format layout
2006-01-02T15:04:05Z07:00
New date format layout
Mon Jan 2 15:04:05 MST 2006
Get date
Returns a date in the DATE_FORMAT defined. You can use the optional parameters to set a time in the past and determine the time zone.
Date_Format
%Y-%m-%dT%H:%M:%S
Date
2006-08-29T23:59:11
Output
2022-06-14T14:30:45
Compare dates
You can use the If or Switch operators and the Equals (or Not Equals) condition to check if the dates are the same.