Creates and returns a day of the week with a given day.
SDKs
- iOS 4.0+
- macOS 10.8+
- Mac Catalyst 13.0+
- watchOS 2.0+
Framework
- Event
Kit
Declaration
convenience init(_ dayOfTheWeek: EKWeekday)
Parameters
dayOfTheWeek
The day of the week. Values range from
1
to7
, with Sunday being1
.
Return Value
The new day of the week.
Discussion
The week number of the returned day of the week is 0
.