<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/DateFormatter/Style",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:@E@NSDateFormatterStyle"
  },
  "title" : "DateFormatter.Style"
}
-->

# DateFormatter.Style

The following constants specify predefined format styles for dates and times.

```
enum Style
```

## Overview

The format for these date and time styles is not exact because they depend on the locale, user preference settings, and the operating system version. Do not use these constants if you want an exact format.

## Topics

### Constants

[`DateFormatter.Style.none`](/documentation/Foundation/DateFormatter/Style/none)

[`DateFormatter.Style.short`](/documentation/Foundation/DateFormatter/Style/short)

[`DateFormatter.Style.medium`](/documentation/Foundation/DateFormatter/Style/medium)

[`DateFormatter.Style.long`](/documentation/Foundation/DateFormatter/Style/long)

[`DateFormatter.Style.full`](/documentation/Foundation/DateFormatter/Style/full)



---

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)