---
title: weeks
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/calendar/recurrencerule/weeks
---

# weeks

On which weeks of the year the event should occur.

## Declaration

```swift
var weeks: [Int]
```

## Discussion

Discussion 1 is the first week of the year. calendar.minimumDaysInFirstWeek defines which week is considered first. Negative values refer to weeks if counting backwards from the last week of the year. -1 is the last week of the year. This field is unused when frequency is other than .yearly.
