---
title: quarter
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/datecomponents/quarter
---

# quarter

A quarter or count of quarters.

## Declaration

```swift
var quarter: Int? { get set }
```

## Discussion

Discussion note: This value is interpreted in the context of the calendar in which it is used.

## See Also

### Accessing Months and Years

- [era](foundation/datecomponents/era.md)
- [year](foundation/datecomponents/year.md)
- [yearForWeekOfYear](foundation/datecomponents/yearforweekofyear.md)
- [month](foundation/datecomponents/month.md)
- [isLeapMonth](foundation/datecomponents/isleapmonth.md)
