Instance Property

weekdayOrdinal

The ordinal number of weekdays.

Declaration

@property NSInteger weekdayOrdinal;

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.

This value is interpreted in the context of the calendar with which it is used—see Calendars, Date Components, and Calendar Units in Date and Time Programming Guide.

See Also

Accessing Weeks and Days

weekday

The number of the weekdays.

weekOfMonth

The week number of the months.

weekOfYear

The ISO 8601 week date of the year.

day

The number of days.

- week

Returns the number of weeks.

Deprecated
- setWeek:

Sets the number of weeks.

Deprecated