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

# weekdayOrdinal

A weekday ordinal or count of weekday ordinals.

## Declaration

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

## Discussion

Discussion Weekday ordinal units represent the position of the weekday within the next larger calendar unit, such as the month. For example, 2 is the weekday ordinal unit for the second Friday of the month. note: This value is interpreted in the context of the calendar in which it is used.

## See Also

### Accessing Weeks and Days

- [weekOfMonth](foundation/datecomponents/weekofmonth.md)
- [weekOfYear](foundation/datecomponents/weekofyear.md)
- [weekday](foundation/datecomponents/weekday.md)
- [day](foundation/datecomponents/day.md)
