PROCESIO
OverviewPlatform ActionsIntegrations & DemosMarketplaceCustom ActionsDeveloperโ€™s Guide

Update DateTime

Adds or subtracts years, months, days, hours, minutes or seconds to a date.

Update DateTime moves a date forward or back by a whole number of years, months, days, hours, minutes or seconds. Use it to calculate due dates ("invoice date + 30 days"), reminders ("start time โˆ’ 15 minutes") or expiry dates.

Add the action

In the Process Designer toolbox, open DateTime and pick Update DateTime (or type Update DateTime in the search box).

The Update DateTime action properties: Date, Unit Of Time, Change Amount and Updated Date

Inputs and outputs

FieldDirectionTypeRequiredWhat to put / what you get
DateInputDate and timeYesThe date to start from.
Unit Of TimeInputOption listYesYear, Month, Day, Hours, Minutes or Seconds.
Change AmountInputIntegerYesHow many units to add. Use a negative number to go back in time. Default 0.
Updated DateOutputDate and timeYesThe new date.

Example

DateUnit Of TimeChange AmountUpdated Date
2024-03-01T10:00:00Day-12024-02-29T10:00:00
2024-01-31T10:00:00Month12024-02-29T10:00:00
2024-02-29T10:00:00Year12025-02-28T10:00:00
2024-12-31T22:00:00Hours52025-01-01T03:00:00
2024-12-31T22:00:00Minutes-902024-12-31T20:30:00
2024-12-31T23:59:30Seconds452025-01-01T00:00:15

Good to know

  • Month ends and leap years: when the target month is shorter, the day moves to the last day of that month (31 January + 1 month = 29 February in a leap year; 29 February + 1 year = 28 February). Adding years, months or days never changes the time of day.
  • Whole numbers only: Change Amount must be an integer. 1.5 stops the step with an error. To add a day and a half, add 36 hours instead.
  • Time zone: a date with a UTC offset is first converted to UTC, and the result has no offset: 2024-12-31T23:00:00+02:00 + 1 day gives 2025-01-01T21:00:00.
  • Days are calendar days. To skip weekends, check each new date with Is Weekday.

On this page