---
title: Date.AnchoredRelativeFormatStyle
framework: foundation
role: symbol
role_heading: Structure
path: foundation/date/anchoredrelativeformatstyle
---

# Date.AnchoredRelativeFormatStyle

A relative format style that is detached from the system time, and instead formats an anchor date relative to the format input.

## Declaration

```swift
struct AnchoredRelativeFormatStyle
```

## Topics

### Initializers

- [init(anchor:allowedFields:presentation:unitsStyle:locale:calendar:capitalizationContext:)](foundation/date/anchoredrelativeformatstyle/init(anchor:allowedfields:presentation:unitsstyle:locale:calendar:capitalizationcontext:).md)
- [init(anchor:presentation:unitsStyle:locale:calendar:capitalizationContext:)](foundation/date/anchoredrelativeformatstyle/init(anchor:presentation:unitsstyle:locale:calendar:capitalizationcontext:).md)

### Instance Properties

- [allowedFields](foundation/date/anchoredrelativeformatstyle/allowedfields.md)
- [anchor](foundation/date/anchoredrelativeformatstyle/anchor.md)
- [calendar](foundation/date/anchoredrelativeformatstyle/calendar.md)
- [capitalizationContext](foundation/date/anchoredrelativeformatstyle/capitalizationcontext.md)
- [locale](foundation/date/anchoredrelativeformatstyle/locale.md)
- [presentation](foundation/date/anchoredrelativeformatstyle/presentation-swift.property.md)
- [unitsStyle](foundation/date/anchoredrelativeformatstyle/unitsstyle-swift.property.md)

### Type Aliases

- [Date.AnchoredRelativeFormatStyle.Field](foundation/date/anchoredrelativeformatstyle/field.md)
- [Date.AnchoredRelativeFormatStyle.Presentation](foundation/date/anchoredrelativeformatstyle/presentation-swift.typealias.md)
- [Date.AnchoredRelativeFormatStyle.UnitsStyle](foundation/date/anchoredrelativeformatstyle/unitsstyle-swift.typealias.md)

## Relationships

### Conforms To

- [Copyable](swift/copyable.md)
- [Decodable](swift/decodable.md)
- [DiscreteFormatStyle](foundation/discreteformatstyle.md)
- [Encodable](swift/encodable.md)
- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [FormatStyle](foundation/formatstyle.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
