Skip to main content

Calculate time difference between dates

Calculates the time difference between two dates. The time difference can be measured in years, months, days, etc.

Common use cases

  • Data manipulation Wrkflows
  • Time management

Category

  • Date & Time

Inputs (what you have)

NAMEDESCRIPTIONTYPEREQUIREDEXAMPLE
Start dateIn the YYYY-MM-DD HH:MM AM/PM format, provide the start date.DateYes2022-01-25 2:30 PM
End dateIn the YYYY-MM-DD HH:MM AM/PM, provide the end date. End date should always come after start dateDateNo2022-12-03 4:00 PM

Note: the value of inputs can either be a set value in the configuration of the Wrk Action within the Wrkflow, or a variable from the Data library section. These variables in the Data library section are the outputs of previous Wrk Actions in the Wrkflow.

Outputs (what you get)

NAMEDESCRIPTIONTYPEREQUIREDEXAMPLE
Difference in minutesDifference in minutes between start date and end dateNumberYes449370
Difference in hoursDifference in hours between start date and end dateNumberYes7489.5
Difference in daysDifference in days between start date and end dateNumberYes312.1
Difference in monthsDifference in months between start date and end dateNumberYes10.3
Difference in yearsDifference in years between start date and end dateNumberYes0.86

Statuses

NAMEDESCRIPTION
SuccessThis status is selected when the difference between two dates was successfully calculated.
UnsuccessfulThis status is selected in the event of the following scenarios:- The start and/or end dates are not provided

Requirements

  • N/A