Move a DateTime by whole UTC calendar years while clamping leap day when the target year lacks it.
Inputs
- DateTime (datetime, required): valid DateTime value.
- Years (number, required): strict finite number.
Outputs
- DateTime (datetime): valid DateTime value.
How it behaves
Uses UTC calendar parts and preserves the clock. February 29 moved to a non-leap year is explicitly clamped to February 28.
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 year 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.
| Direction | Connector | Type | Required |
|---|---|---|---|
| Input | value — DateTime | datetime | yes |
| Input | years — Years | number | yes |
| Output | result — DateTime | datetime | on success |
