---
title: weekday
framework: corefoundation
role: symbol
role_heading: Type Property
path: corefoundation/cfcalendarunit/weekday
---

# weekday

Specifies the weekday unit.

## Declaration

```swift
static var weekday: CFCalendarUnit { get }
```

## Discussion

Discussion The weekday units are the numbers 1-N (where for the Gregorian calendar N=7 and 1 is Sunday).

## See Also

### Constants

- [era](corefoundation/cfcalendarunit/era.md)
- [year](corefoundation/cfcalendarunit/year.md)
- [month](corefoundation/cfcalendarunit/month.md)
- [day](corefoundation/cfcalendarunit/day.md)
- [hour](corefoundation/cfcalendarunit/hour.md)
- [minute](corefoundation/cfcalendarunit/minute.md)
- [second](corefoundation/cfcalendarunit/second.md)
- [week](corefoundation/cfcalendarunit/week.md)
- [weekdayOrdinal](corefoundation/cfcalendarunit/weekdayordinal.md)
- [quarter](corefoundation/cfcalendarunit/quarter.md)
- [weekOfMonth](corefoundation/cfcalendarunit/weekofmonth.md)
- [weekOfYear](corefoundation/cfcalendarunit/weekofyear.md)
- [yearForWeekOfYear](corefoundation/cfcalendarunit/yearforweekofyear.md)
