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

# era

An era or count of eras.

## Declaration

```swift
var era: 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

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