Add Months

date-time · C276 · starter-package 7.0.1

Move a DateTime by whole UTC calendar months while clamping an invalid end-of-month day.

Inputs

  • DateTime (datetime, required): valid DateTime value.
  • Months (number, required): strict finite number.

Outputs

  • DateTime (datetime): valid DateTime value.

How it behaves

Uses UTC calendar parts. When the original day does not exist in the target month, it clamps to that month's final day; for example January 31 plus one month becomes February 28 or 29.

Errors and recovery

When this block reports an error, no downstream output is emitted. Correct the highlighted input or setting described by the message, then run the workflow again.

Execution stops for malformed input, a non-integer/out-of-range month count, or a result outside years 0001-9999.

Connector data types

The type below is the data type that actually travels through the connection. Any additional validation is described separately in this block guide.

DirectionConnectorTypeRequired
Inputvalue — DateTimedatetimeyes
Inputmonths — Monthsnumberyes
Outputresult — DateTimedatetimeon success