<!--
{
  "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/Month",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:10Foundation4DateV11FormatStyleV6SymbolV5MonthV"
  },
  "title" : "Date.FormatStyle.Symbol.Month"
}
-->

# Date.FormatStyle.Symbol.Month

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

```
struct Month
```

## Overview

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

|Factory variable                                                                                   |Description                                                                        |
|---------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------|
|``doc://com.apple.foundation/documentation/Foundation/Date/FormatStyle/Symbol/Month/abbreviated``  |Abbreviated month name. For example, `Sep`.                                        |
|``doc://com.apple.foundation/documentation/Foundation/Date/FormatStyle/Symbol/Month/defaultDigits``|Minimum number of digits that represents the numeric month. For example, `9`, `12`.|
|``doc://com.apple.foundation/documentation/Foundation/Date/FormatStyle/Symbol/Month/narrow``       |Narrow month name. For example, `S`.                                               |
|``doc://com.apple.foundation/documentation/Foundation/Date/FormatStyle/Symbol/Month/twoDigits``    |Two-digit numeric month, zero-padded if necessary. For example, `09`, `12`.        |
|``doc://com.apple.foundation/documentation/Foundation/Date/FormatStyle/Symbol/Month/wide``         |Wide month name. For example, `September`.                                         |

To customize the month format in a string representation of a `Date`, use [`month(_:)`](/documentation/Foundation/Date/FormatStyle/month(_:)). The following example shows a variety of [`Date.FormatStyle.Symbol.Month`](/documentation/Foundation/Date/FormatStyle/Symbol/Month) format styles applied to a date.

```swift
let meetingDate = Date() // Feb 9, 2021 at 3:00 PM
meetingDate.formatted(Date.FormatStyle().month(.abbreviated)) // Feb
meetingDate.formatted(Date.FormatStyle().month(.narrow)) // F
meetingDate.formatted(Date.FormatStyle().month(.defaultDigits)) // 2
meetingDate.formatted(Date.FormatStyle().month(.twoDigits)) // 02
meetingDate.formatted(Date.FormatStyle().month(.wide)) // February
meetingDate.formatted(Date.FormatStyle().month()) // Feb
```

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 Month

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

The abbreviated representation of a month.

[`static var defaultDigits: Date.FormatStyle.Symbol.Month`](/documentation/Foundation/Date/FormatStyle/Symbol/Month/defaultDigits)

Custom month format style showing the minimum number of digits that represents the numeric month.

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

The shortest representation of a month.

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

The custom month format style that uses two digits to represent the numeric month.

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

The full representation of a month.

### Comparing a Month

[`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.Month`](/documentation/Foundation/Date/FormatStyle/Symbol/Month/omitted)

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

## Relationships

### Conforms To

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

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

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

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

---

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)