Keragon’s Add or Subtract Datetimes action allows you to manipulate dates and times by adding or subtracting specific time values. This is useful for calculating future or past dates, setting reminders, deadlines, and more.
How to Use the Add or Subtract Datetimes Helper
-
Open your workflow editor.
-
Click the + icon to add a new step.
-
In the step selection panel, click "Helpers".
-
From the Helpers options, select "Date and Time Helpers".
-
Choose the "Add or Subtract Datetimes" action.
-
Click the Input Value field.
-
Use the Variable Selector to map the datetime value you want to manipulate.
-
Set the Expression field using natural language to define the time adjustment.
-
Example Expressions:
-
+3 days
-
-2 hours
-
+1 month -5 days
-
-
-
Set the Format of Input Value field (Default: ISO8601) to match the format of the incoming datetime.
-
Set the Transform Value To Format field (Default: ISO8601) to define the output format.
-
(Optional) Set the timezones in Timezone of Input Value and Convert Value to Timezone fields (Defaults to UTC).
-
Click "Save" to apply changes.
-
Click "Test Step" to preview the result.
-
Go to the Outputs tab to view the final adjusted datetime.
Example Result:
-
Input:
"2023-10-25T14:30:45Z"
-
Expression:
+5 days -2 hours
-
Output:
"2023-10-30T12:30:45Z"