Instance Property

weekdayOrdinal

A weekday ordinal or count of weekday ordinals.

Declaration

var weekdayOrdinal: Int? { get set }

Discussion

Weekday ordinal units represent the position of the weekday within the next larger calendar unit, such as the month. For example, 2 is the weekday ordinal unit for the second Friday of the month.

See Also

Accessing Weeks and Days

var weekOfMonth: Int?

A week of the month or a count of weeks of the month.

var weekOfYear: Int?

A week of the year or count of the weeks of the year.

var weekday: Int?

A weekday or count of weekdays.

var day: Int?

A day or count of days.