Month Number

date-time · C288 · starter-package 7.0.1

Return a DateTime's local calendar month as 1 for January through 12 for December.

Inputs

  • DateTime (datetime, required): valid DateTime value.
  • Time Zone (text, required): strict text.

Outputs

  • Month Number (number): strict finite number.

How it behaves

Converts the DateTime to the selected time zone and returns the month number from 1 through 12.

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.

DirectionConnectorTypeRequired
Inputvalue — DateTimedatetimeyes
InputtimeZone — Time Zonetextyes
Outputresult — Month Numbernumberon success