<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/Calendar/RecurrenceRule/daysOfTheYear",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:10Foundation8CalendarV14RecurrenceRuleV13daysOfTheYearSaySiGvp"
  },
  "title" : "daysOfTheYear"
}
-->

# daysOfTheYear

On which days of the year the event may occur.

```
var daysOfTheYear: [Int]
```

## Discussion

- 1 signifies the first day of the year.
- Negative values point to a day counted backwards from the last day
  of the year
  This field is unused when `frequency` is any of `.daily`, `.weekly`,
  or `.monthly`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)