<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/RelativeDateTimeFormatter/DateTimeStyle-swift.enum",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:@E@NSRelativeDateTimeFormatterStyle"
  },
  "title" : "RelativeDateTimeFormatter.DateTimeStyle"
}
-->

# RelativeDateTimeFormatter.DateTimeStyle

A type that represents the style to use when formatting relative dates, such as “1 week ago” or “last week”.

```
enum DateTimeStyle
```

## Topics

### Formatting Dates and Times

[`case named`](/documentation/Foundation/RelativeDateTimeFormatter/DateTimeStyle-swift.enum/named)

A style that uses named styles to describe relative dates, such as “yesterday”, “last week”, or “next week”.

[`case numeric`](/documentation/Foundation/RelativeDateTimeFormatter/DateTimeStyle-swift.enum/numeric)

A style that uses a numeric style to describe relative dates, such as “1 day ago” or “in 3 weeks”.

### Initializers

[`init?(rawValue: Int)`](/documentation/Foundation/RelativeDateTimeFormatter/DateTimeStyle-swift.enum/init(rawValue:))

## Relationships

### Conforms To

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

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

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

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

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

[`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)