---
title: weeksOfTheYear
framework: eventkit
role: symbol
role_heading: Instance Property
path: eventkit/ekrecurrencerule/weeksoftheyear
---

# weeksOfTheYear

The weeks of the year associated with the recurrence rule, as an array of NSNumber objects.

## Declaration

```swift
var weeksOfTheYear: [NSNumber]? { get }
```

## Discussion

Discussion Values can be from 1 to 53 and from -1 to -53. This property value is valid only for recurrence rules initialized with specific weeks of the year and a frequency type of EKRecurrenceFrequency.yearly. Negative values indicate counting backwards from the end of the year.

## See Also

### Accessing Recurrence Rule Properties

- [EKRecurrenceFrequency](eventkit/ekrecurrencefrequency.md)
- [calendarIdentifier](eventkit/ekrecurrencerule/calendaridentifier.md)
- [recurrenceEnd](eventkit/ekrecurrencerule/recurrenceend.md)
- [frequency](eventkit/ekrecurrencerule/frequency.md)
- [interval](eventkit/ekrecurrencerule/interval.md)
- [firstDayOfTheWeek](eventkit/ekrecurrencerule/firstdayoftheweek.md)
- [daysOfTheWeek](eventkit/ekrecurrencerule/daysoftheweek.md)
- [daysOfTheMonth](eventkit/ekrecurrencerule/daysofthemonth.md)
- [daysOfTheYear](eventkit/ekrecurrencerule/daysoftheyear.md)
- [monthsOfTheYear](eventkit/ekrecurrencerule/monthsoftheyear.md)
- [setPositions](eventkit/ekrecurrencerule/setpositions.md)
- [EK_LOSE_FRACTIONAL_SECONDS_DO_NOT_USE()](eventkit/ek_lose_fractional_seconds_do_not_use().md)
