Instance Property


The number of months.


var month: Int { get set }


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 Years and Months

var era: Int

The number of eras.

var year: Int

The number of years.

var yearForWeekOfYear: Int

The ISO 8601 week-numbering year.

var quarter: Int

The number of quarters.

var isLeapMonth: Bool

A Boolean value that indicates whether the month is a leap month.