<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/Date/FormatStyle/Symbol/Weekday",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:10Foundation4DateV11FormatStyleV6SymbolV7WeekdayV"
  },
  "title" : "Date.FormatStyle.Symbol.Weekday"
}
-->

# Date.FormatStyle.Symbol.Weekday

A type that specifies the format for the weekday name in a date format style.

```
struct Weekday
```

## Overview

The type [`Date.FormatStyle.Symbol.Weekday`](/documentation/Foundation/Date/FormatStyle/Symbol/Weekday) includes static factory variables that create custom [`Date.FormatStyle.Symbol.Weekday`](/documentation/Foundation/Date/FormatStyle/Symbol/Weekday) objects:

|Factory variable                                                                                 |Description                                                                                                                                                                              |
|-------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|``doc://com.apple.foundation/documentation/Foundation/Date/FormatStyle/Symbol/Month/abbreviated``|Abbreviated weekday name. For example, `Tue`.                                                                                                                                            |
|``doc://com.apple.foundation/documentation/Foundation/Date/FormatStyle/Symbol/Month/wide``       |Wide weekday name. For example, `Tuesday`.                                                                                                                                               |
|``doc://com.apple.foundation/documentation/Foundation/Date/FormatStyle/Symbol/Month/narrow``     |Narrow weekday name. For example, `T`.                                                                                                                                                   |
|``doc://com.apple.foundation/documentation/Foundation/Date/FormatStyle/Symbol/Weekday/short``    |Short weekday name. For example, `Tu`.                                                                                                                                                   |
|``doc://com.apple.foundation/documentation/Foundation/Date/FormatStyle/Symbol/Weekday/oneDigit`` |Local numeric one-digit day of week. The value depends on the local starting day of the week. For example, this is `2` if Sunday is the first day of the week.                           |
|``doc://com.apple.foundation/documentation/Foundation/Date/FormatStyle/Symbol/Weekday/twoDigits``|Local numeric two-digit day of week, zero-padded if necessary. The value depends on the local starting day of the week. For example, this is `02` if Sunday is the first day of the week.|

To customize the weekday, name format in a string representation of a `Date`, use [`weekday(_:)`](/documentation/Foundation/Date/FormatStyle/weekday(_:)). This example shows a variety of [`Date.FormatStyle.Symbol.Weekday`](/documentation/Foundation/Date/FormatStyle/Symbol/Weekday) format styles applied to a Thursday, using locale `en_US`:

```swift
let meetingDate = Date() // Feb 18, 2021 at 3:00 PM
meetingDate.formatted(Date.FormatStyle().weekday(.abbreviated)) // Thu
meetingDate.formatted(Date.FormatStyle().weekday(.narrow)) // T
meetingDate.formatted(Date.FormatStyle().weekday(.short)) // Th
meetingDate.formatted(Date.FormatStyle().weekday(.wide)) // Thursday
meetingDate.formatted(Date.FormatStyle().weekday(.oneDigit)) // 5
meetingDate.formatted(Date.FormatStyle().weekday(.twoDigits)) // 05
meetingDate.formatted(Date.FormatStyle().weekday()) // Thu
```

If no format is specified as a parameter, the [`abbreviated`](/documentation/Foundation/Date/FormatStyle/Symbol/Month/abbreviated) static variable is the default format.

For more information about formatting dates, see the [`Date.FormatStyle`](/documentation/Foundation/Date/FormatStyle).

## Topics

### Modifying a Weekday

[`static var abbreviated: Date.FormatStyle.Symbol.Weekday`](/documentation/Foundation/Date/FormatStyle/Symbol/Weekday/abbreviated)

A shortened weekday representation.

[`static var narrow: Date.FormatStyle.Symbol.Weekday`](/documentation/Foundation/Date/FormatStyle/Symbol/Weekday/narrow)

The shortest weekday representation.

[`static var oneDigit: Date.FormatStyle.Symbol.Weekday`](/documentation/Foundation/Date/FormatStyle/Symbol/Weekday/oneDigit)

The one-digit representation of a weekday.

[`static var short: Date.FormatStyle.Symbol.Weekday`](/documentation/Foundation/Date/FormatStyle/Symbol/Weekday/short)

The short weekday representation.

[`static var twoDigits: Date.FormatStyle.Symbol.Weekday`](/documentation/Foundation/Date/FormatStyle/Symbol/Weekday/twoDigits)

The two-digit representation of a standalone weekday, zero-padded if necessary.

[`static var wide: Date.FormatStyle.Symbol.Weekday`](/documentation/Foundation/Date/FormatStyle/Symbol/Weekday/wide)

The complete weekday representation.

### Comparing a Weekday

[`static func == (Date, Date) -> Bool`](/documentation/Foundation/Date/==(_:_:))

Returns true if the two `Date` values represent the same point in time.

### Type Properties

[`static let omitted: Date.FormatStyle.Symbol.Weekday`](/documentation/Foundation/Date/FormatStyle/Symbol/Weekday/omitted)

The option for not including the symbol in the formatted output.

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)