Instance Property

weekOfMonth

The week number of the months.

Declaration

var weekOfMonth: Int { get set }

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

var weekday: Int

The number of the weekdays.

var weekdayOrdinal: Int

The ordinal number of weekdays.

var weekOfYear: Int

The ISO 8601 week date of the year.

var day: Int

The number of days.

func week() -> Int

Returns the number of weeks.

Deprecated
func setWeek(Int)

Sets the number of weeks.

Deprecated