---
title: Date.RelativeFormatStyle.UnitsStyle
framework: foundation
role: symbol
role_heading: Structure
path: foundation/date/relativeformatstyle/unitsstyle-swift.struct
---

# Date.RelativeFormatStyle.UnitsStyle

A type that represents the style to use when formatting the units of relative dates.

## Declaration

```swift
struct UnitsStyle
```

## Overview

Overview Cases include wide, narrow, abbreviated and spellOut.

## Topics

### Modifying a Relative Date Format Units Style

- [abbreviated](foundation/date/relativeformatstyle/unitsstyle-swift.struct/abbreviated.md)
- [narrow](foundation/date/relativeformatstyle/unitsstyle-swift.struct/narrow.md)
- [spellOut](foundation/date/relativeformatstyle/unitsstyle-swift.struct/spellout.md)
- [wide](foundation/date/relativeformatstyle/unitsstyle-swift.struct/wide.md)

### Comparing Relative Date Format Units Styles

- [==(_:_:)](foundation/date/==(_:_:).md)

## Relationships

### Conforms To

- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Supporting Types

- [Date.RelativeFormatStyle.Presentation](foundation/date/relativeformatstyle/presentation-swift.struct.md)
