---
title: DateFormatter.Style
framework: foundation
role: symbol
role_heading: Enumeration
path: foundation/dateformatter/style
---

# DateFormatter.Style

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

## Declaration

```swift
enum Style
```

## Overview

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](foundation/dateformatter/style/none.md)
- [DateFormatter.Style.short](foundation/dateformatter/style/short.md)
- [DateFormatter.Style.medium](foundation/dateformatter/style/medium.md)
- [DateFormatter.Style.long](foundation/dateformatter/style/long.md)
- [DateFormatter.Style.full](foundation/dateformatter/style/full.md)

### Initializers

- [init(rawValue:)](foundation/dateformatter/style/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Constants

- [DateFormatter.Behavior](foundation/dateformatter/behavior.md)
