Create DateTime

date-time · N032 · starter-package 7.0.1

Builds one valid DateTime instant from explicit calendar and clock parts.

Inputs

  • Year (number, required): whole number from 1 through 9999.
  • Month (number, required): 1 through 12.
  • Day (number, required): a real day in the chosen month and year.
  • Hour (number, default 0): 0 through 23.
  • Minute and Second (number, default 0): 0 through 59.
  • Millisecond (number, default 0): 0 through 999.
  • UTC Offset (text, default Z): Z or a fixed ±HH:MM offset from -14:00 through +14:00.

Output

  • DateTime: a portable DateTime value normalized to UTC.

For example, 2024-02-29 23:05 at +02:00 represents 2024-02-29 21:05 UTC. Named zones such as Europe/Amsterdam are intentionally unsupported because daylight-saving rules can make local times ambiguous or nonexistent; supply the applicable offset explicitly.

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 missing or fractional parts, impossible dates, out-of-range clock values, or malformed offsets. Leap day is accepted only in a leap year.

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
Inputyear — Yearnumberyes
Inputmonth — Monthnumberyes
Inputday — Daynumberyes
Inputhour — Hournumberno
Inputminute — Minutenumberno
Inputsecond — Secondnumberno
Inputmillisecond — Millisecondnumberno
InpututcOffset — UTC Offsettextno
Outputresult — DateTimedatetimeon success