---
title: yearForWeekOfYear
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/nscalendar/unit/yearforweekofyear
---

# yearForWeekOfYear

Identifier for the week-counting year unit.

## Declaration

```swift
static var yearForWeekOfYear: NSCalendar.Unit { get }
```

## Discussion

Discussion See the DateComponents property yearForWeekOfYear (or NSDateComponents property yearForWeekOfYear in Objective-C) for a discussion of the semantics of this component.

## See Also

### Specifying Years and Months

- [era](foundation/nscalendar/unit/era.md)
- [year](foundation/nscalendar/unit/year.md)
- [quarter](foundation/nscalendar/unit/quarter.md)
- [month](foundation/nscalendar/unit/month.md)
- [isLeapMonth](foundation/nscalendar/unit/isleapmonth.md)
