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

# weekOfMonth

A week of the month or a count of weeks of the month.

## Declaration

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

## Discussion

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

## See Also

### Accessing Weeks and Days

- [weekOfYear](foundation/datecomponents/weekofyear.md)
- [weekday](foundation/datecomponents/weekday.md)
- [weekdayOrdinal](foundation/datecomponents/weekdayordinal.md)
- [day](foundation/datecomponents/day.md)
