Events.RecurrenceRule.MonthsOfTheYear
-------------------------------------

Queries months of the year.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Events](component_Events.md) | [6.2](newinversion62.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |

MBS( "Events.RecurrenceRule.MonthsOfTheYear"; EKRecurrenceRule ) 

**MBS**( **"Events.RecurrenceRule.MonthsOfTheYear";** /\* Queries months of the year. \*/  
**$EKRecurrenceRule**) /\* The reference to the recurrence rule.e.g. $RecurrenceRule \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| EKRecurrenceRule | The reference to the recurrence rule. | $RecurrenceRule |

### Result

Returns list or error.

### Description

Queries months of the year.  
This property is valid for rules whose frequency is yearly. This property can be accessed as an list containing one or more numbers corresponding to the months of the year the event recurs. For all other EKRecurrenceRules, this property is empty. This property corresponds to BYMONTH in the iCalendar specification.  
### See also

- [Events.RecurrenceRule.DaysOfTheMonth](EventsRecurrenceRuleDaysOfTheMonth.md)
- [Events.RecurrenceRule.DaysOfTheWeek](EventsRecurrenceRuleDaysOfTheWeek.md)
- [Events.RecurrenceRule.DaysOfTheYear](EventsRecurrenceRuleDaysOfTheYear.md)
- [Events.RecurrenceRule.FirstDayOfTheWeek](EventsRecurrenceRuleFirstDayOfTheWeek.md)
- [Events.RecurrenceRule.WeeksOfTheYear](EventsRecurrenceRuleWeeksOfTheYear.md)

This function checks for a license.

Created 10th March 2016 , last changed 13th March 2016

  
[Events.RecurrenceRule.Interval](EventsRecurrenceRuleInterval.md) - [Events.RecurrenceRule.NewWithFrequency](EventsRecurrenceRuleNewWithFrequency.md)

[HTML Version](EventsRecurrenceRuleMonthsOfTheYear.shtml)