---
title: daysOfTheYear
framework: eventkit
role: symbol
role_heading: Instance Property
path: eventkit/ekrecurrencerule/daysoftheyear
---

# daysOfTheYear

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

## Declaration

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

## Discussion

Discussion Values can be from 1 to 366 and from -1 to -366. This property value is valid only for recurrence rules initialized with 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)
- [weeksOfTheYear](eventkit/ekrecurrencerule/weeksoftheyear.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)
