Instance Method

week

Returns the number of weeks.

Declaration

- (NSInteger)week;

Return Value

The number of week units for the receiver.

Discussion

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.

weekdayOrdinal

The ordinal number of weekdays.

weekOfMonth

The week number of the months.

weekOfYear

The ISO 8601 week date of the year.

day

The number of days.

- setWeek:

Sets the number of weeks.

Deprecated