<!--
{
  "availability" : [
    "iOS: 4.0.0 -",
    "iPadOS: 4.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.8.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "EventKit",
  "identifier" : "/documentation/EventKit/EKRecurrenceDayOfWeek/init(_:weekNumber:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "EventKit"
    ],
    "preciseIdentifier" : "c:objc(cs)EKRecurrenceDayOfWeek(cm)dayOfWeek:weekNumber:"
  },
  "title" : "init(_:weekNumber:)"
}
-->

# init(_:weekNumber:)

Creates and returns an autoreleased day of the week with a given day and week number.

```
convenience init(_ dayOfTheWeek: EKWeekday, weekNumber: Int)
```

## Parameters

`dayOfTheWeek`

The day of the week. Values range from `1` to `7`, with Sunday being `1`.

`weekNumber`

The week number.

## Return Value

The new day of the week.

## Discussion

---

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)