Add or Subtract Time from a Date Using the "Add or Subtract Datetimes" Date Helper

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

00:00: Explorer how to manipulate dates and times using add or subtract date 00:04: X action and Kerrigan. 00:07: First. Go to your workflow editor. 00:10: Click the plus icon. 00:13: Access the helpers menu. 00:16: Access the date and time helpers option. 00:19: Click the add or subtract date X action. 00:23: Click the input value field. 00:26: Set alarm at the date time that you want to add or subtract from 00:31: Set the expression field on how you would like to add or subtract to the date 00:35: using natural language. 00:38: Set the date or time format of the input daytime in the format of input 00:42: value field. 00:44: Set the date or time format to transform the input date time in the transform 00:48: value to format field. 00:51: Optional, we can select the timezone of the following. 00:54: Drop down, Fields defaults to UTC. 00:59: Confirm and save the changes. 01:02: Initiate the test process. 01:05: Click the outputs Tab and view the generated output. 01:09: This guy covered the process of adding or subtracting time from a date using 01:13: carrigan's functionalities empowering you to work with date-time Transformations, 01:18: efficiently,

  • 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"

Was this article helpful?
0 out of 0 found this helpful

Articles in this section

See more