<!--
{
  "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/Weekday/nth(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:10Foundation8CalendarV14RecurrenceRuleV7WeekdayO3nthyAGSi_AA6LocaleVAFOtcAGmF"
  },
  "title" : "Calendar.RecurrenceRule.Weekday.nth(_:_:)"
}
-->

# Calendar.RecurrenceRule.Weekday.nth(_:_:)

Repeat on the n-th instance of the specified weekday in a month,
if the recurrence has a monthly frequency. If the recurrence has
a yearly frequency, repeat on the n-th week of the year.

```
case nth(Int, Locale.Weekday)
```

## Discussion

If n is negative, repeat on the n-to-last of the given weekday.

---

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)