---
title: month
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsdatecomponents/month
---

# month

The number of months.

## Declaration

```swift
var month: Int { get set }
```

## Discussion

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

- [era](foundation/nsdatecomponents/era.md)
- [year](foundation/nsdatecomponents/year.md)
- [yearForWeekOfYear](foundation/nsdatecomponents/yearforweekofyear.md)
- [quarter](foundation/nsdatecomponents/quarter.md)
- [isLeapMonth](foundation/nsdatecomponents/isleapmonth.md)
