---
title: "weekday(_:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/date/formatstyle/weekday(_:)"
---

# weekday(_:)

Modifies the date format style to use the specified weekday format style.

## Declaration

```swift
func weekday(_ format: Date.FormatStyle.Symbol.Weekday = .abbreviated) -> Date.FormatStyle
```

## Parameters

- `format`: The weekday format style applied to the date format style.

## Return Value

Return Value A date format style modified to include the specified week format style.

## Discussion

Discussion Possible values of Date.FormatStyle.Symbol.Weekday include abbreviated, narrow, oneDigit, short, twoDigits, and wide.

## See Also

### Specifying the Date Format

- [day(_:)](foundation/date/formatstyle/day(_:).md)
- [dayOfYear(_:)](foundation/date/formatstyle/dayofyear(_:).md)
- [era(_:)](foundation/date/formatstyle/era(_:).md)
- [month(_:)](foundation/date/formatstyle/month(_:).md)
- [quarter(_:)](foundation/date/formatstyle/quarter(_:).md)
- [week(_:)](foundation/date/formatstyle/week(_:).md)
- [year(_:)](foundation/date/formatstyle/year(_:).md)
- [Date.FormatStyle.DateStyle](foundation/date/formatstyle/datestyle.md)
