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

# Date.FormatStyle.Symbol.Hour.AMPMStyle

The format style of the string representation of the day period, before or after noon, in a date.

```
struct AMPMStyle
```

## Overview

Possible values for this style are: [`omitted`](/documentation/Foundation/Date/FormatStyle/Symbol/Hour/AMPMStyle/omitted), [`narrow`](/documentation/Foundation/Date/FormatStyle/Symbol/Hour/AMPMStyle/narrow), [`abbreviated`](/documentation/Foundation/Date/FormatStyle/Symbol/Hour/AMPMStyle/abbreviated), and [`wide`](/documentation/Foundation/Date/FormatStyle/Symbol/Hour/AMPMStyle/wide).

## Topics

### Creating AMPM Styles

[`static let abbreviated: Date.FormatStyle.Symbol.Hour.AMPMStyle`](/documentation/Foundation/Date/FormatStyle/Symbol/Hour/AMPMStyle/abbreviated)

A type that specifies the abbreviated day period for when the locale prefers using day period with hour.

[`static let narrow: Date.FormatStyle.Symbol.Hour.AMPMStyle`](/documentation/Foundation/Date/FormatStyle/Symbol/Hour/AMPMStyle/narrow)

A type that specifies the narrow day period if the locale prefers using day period with hour.

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

A type that hides the day period marker.

[`static let wide: Date.FormatStyle.Symbol.Hour.AMPMStyle`](/documentation/Foundation/Date/FormatStyle/Symbol/Hour/AMPMStyle/wide)

A type that represents the wide day period if the locale prefers using day period with hour.

### Comparing AMPM Styles

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

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

## Relationships

### Conforms To

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

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

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

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

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

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

---

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)