Days in Calendar Month

date-time · N113 · starter-package 7.0.1

Return the length of the Gregorian month containing the UTC DateTime. February follows the Gregorian leap-year rule.

Example

The ISO timestamps below are the values carried by DateTime connections. Connect the output of Parse Date or Create DateTime.

{"date":"2024-02-15T00:00:00.000Z"}

Result

{"days":29}

Connector data types

DirectionConnectorTypeRequired
Inputdate — Datedatetimeyes
Outputdays — Daysnumberon success

Errors and recovery

Connect a DateTime. If your source is text, use Parse Date so February is evaluated for the intended year.