skip to main content
Corticon Studio: Rule Language Guide : Rule operator details and examples : Month
 

Try Corticon Now

Month

SYNTAX

<DateTime>.month
<Date>.month

DESCRIPTION

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

USAGE RESTRICTIONS

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

RULESHEET EXAMPLE

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

SAMPLE RULETEST

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.