Skip to main content

Date.Month

Returns the month component.

Syntax​

Date.Month(
dateTime as any
) as number

Remarks​

Returns the month component of the provided datetime value, dateTime.

Examples​

Example #1​

Find the month in #datetime(2011, 12, 31, 9, 15, 36).

Date.Month(#datetime(2011, 12, 31, 9, 15, 36))

Result:

12

Category​

Date