Get Date Parts

date-time · N033 · starter-package 7.0.1

Extracts a complete, consistent set of calendar and clock parts from one DateTime.

Inputs

  • DateTime (DateTime, required): a valid DateTime value.
  • UTC Offset (text, default Z): Z or a fixed ±HH:MM offset from -14:00 through +14:00.

Outputs

  • Year, Month, Day, Hour, Minute, Second, and Millisecond (numbers).
  • Weekday (number): ISO weekday 1 for Monday through 7 for Sunday.
  • UTC Offset (text): the normalized offset used to calculate the parts.

The same instant can produce different calendar parts at different offsets. Fixed offsets keep the result deterministic and make daylight-saving choices explicit.

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.

An invalid DateTime, unsafe field name, or invalid UTC offset stops the workflow with a clear message.

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
InpututcOffset — UTC Offsettextno
Outputyear — Yearnumberon success
Outputmonth — Monthnumberon success
Outputday — Daynumberon success
Outputweekday — Weekdaynumberon success
Outputhour — Hournumberon success
Outputminute — Minutenumberon success
Outputsecond — Secondnumberon success
Outputmillisecond — Millisecondnumberon success
OutpututcOffset — UTC Offsettexton success