SYNTAX

<DateTime>.month

<Date>.month

Returns the month in <DateTime> or <Date> as an Integer between 1 and 12.

The Operators row of the table in Summary Table of Vocabulary Usage Restriction applies. No special exceptions.

The following Rulesheet uses .month to evaluate dateTime1 and dateOnly1 and assign the month value to integer1 and integer2, respectively.

A sample Ruletest provides three examples of dateTime1 or dateOnly1. Input and Output panels are shown below. The month returned is independent of the machine running the Ruletest and only depends on the locale/timezone of the data itself.