---
title: "CFCalendarGetFirstWeekday(_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfcalendargetfirstweekday(_:)"
---

# CFCalendarGetFirstWeekday(_:)

Returns the index of first weekday for a specified calendar.

## Declaration

```swift
func CFCalendarGetFirstWeekday(_ calendar: CFCalendar!) -> CFIndex
```

## Parameters

- `calendar`: The calendar to examine.

## Return Value

Return Value The index of the first weekday of the specified calendar.

## See Also

### Getting and Setting Day Information

- [CFCalendarSetFirstWeekday(_:_:)](corefoundation/cfcalendarsetfirstweekday(_:_:).md)
- [CFCalendarGetMinimumDaysInFirstWeek(_:)](corefoundation/cfcalendargetminimumdaysinfirstweek(_:).md)
- [CFCalendarSetMinimumDaysInFirstWeek(_:_:)](corefoundation/cfcalendarsetminimumdaysinfirstweek(_:_:).md)
