Calculate the ISO 8601 week number and corresponding week-year for a local calendar date.
Inputs
- DateTime (datetime, required): valid DateTime value.
- Time Zone (text, required): strict text.
Outputs
- ISO Week (number): strict finite number.
- ISO Week Year (number): strict finite number.
How it behaves
Uses ISO 8601: weeks begin on Monday and week 1 is the week containing January 4. The week-year can differ from the calendar year near New Year.
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.
The workflow stops for an invalid date, unknown time zone, or a date the selected time zone cannot represent.
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 | timeZone — Time Zone | text | yes |
| Output | result — ISO Week | number | on success |
| Output | weekYear — ISO Week Year | number | on success |
