Description
Calculates a date and time using given date and a delta.
Parameters
-
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 as
10 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.
Choose an action to perform on a date: add or subtract.
Choose time unit: year, month, day, hour, minute, second.
-
Set a value: set a value that is used in calculation.
-
Save the previous step result: take the previous activity result as a value.
-
Calculate a value: use JS to calculate a value.
Usage Examples
The best example is processing the messages that have been received in last 7 days. Get current date, subtract 7 days and compare the result date with message's received date.