Description
Calculates the difference between two dates.
Parameters
Initial date
-
Set a value: set the initial date manually.
-
Save the previous step result: take the previous activity result as a date.
-
Calculate a value: use JS to calculate a date.
Date to subtract
-
Set a value: set a date manually.
-
Save the previous step result: take the previous activity result as a date.
-
Calculate a value: use JS to calculate a date.
Note that when using the "Save the previous step result" and "Calculate a value" options, you must enter the date according to RFC 2822 and ISO 8601 standards. According to RFC 2822, there are many date entry options, such as10 Jun 2021
. ISO 8601 also supports multiple date formats, such as YYYY-MM-DD that is2021-06-10
, which also stands for June 10, 2021.
Usage Examples
This activity helps to answer the question "How old is this document?" Set the current date as 'initial date', set the document date as 'date to subtract' and calculate the difference.