---
title: "Calendar.RecurrenceRule.Weekday.nth(_:_:)"
framework: foundation
role: symbol
role_heading: Case
path: "foundation/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.

## Declaration

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

## Discussion

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