SYNTAX

<DateTime>.year

Returns the century/year portion of <DateTime>. The returned value is a four digit Integer.

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

The following Rulesheet uses .year to evaluate dateTime1 and dateTime2 and assign the year values to integer1 and integer2, respectively.

A sample Ruletest provides two examples of dateTime1 and dateTime2. Input and Output panels are shown below: