---
title: Date.FormatStyle.Attributed
framework: foundation
role: symbol
role_heading: Structure
path: foundation/date/formatstyle/attributed-swift.struct
---

# Date.FormatStyle.Attributed

The type preserving attributed variant of this style.

## Declaration

```swift
@dynamicMemberLookup struct Attributed
```

## Overview

Overview This style attributes the formatted date with the AttributeScopes.FoundationAttributes.DateFormatFieldAttribute.

## Topics

### Instance Methods

- [day(_:)](foundation/date/formatstyle/attributed-swift.struct/day(_:).md)
- [dayOfYear(_:)](foundation/date/formatstyle/attributed-swift.struct/dayofyear(_:).md)
- [era(_:)](foundation/date/formatstyle/attributed-swift.struct/era(_:).md)
- [format(_:)](foundation/date/formatstyle/attributed-swift.struct/format(_:).md)
- [hour(_:)](foundation/date/formatstyle/attributed-swift.struct/hour(_:).md)
- [locale(_:)](foundation/date/formatstyle/attributed-swift.struct/locale(_:).md)
- [minute(_:)](foundation/date/formatstyle/attributed-swift.struct/minute(_:).md)
- [month(_:)](foundation/date/formatstyle/attributed-swift.struct/month(_:).md)
- [quarter(_:)](foundation/date/formatstyle/attributed-swift.struct/quarter(_:).md)
- [second(_:)](foundation/date/formatstyle/attributed-swift.struct/second(_:).md)
- [secondFraction(_:)](foundation/date/formatstyle/attributed-swift.struct/secondfraction(_:).md)
- [timeZone(_:)](foundation/date/formatstyle/attributed-swift.struct/timezone(_:).md)
- [week(_:)](foundation/date/formatstyle/attributed-swift.struct/week(_:).md)
- [weekday(_:)](foundation/date/formatstyle/attributed-swift.struct/weekday(_:).md)
- [year(_:)](foundation/date/formatstyle/attributed-swift.struct/year(_:).md)

### Subscripts

- [subscript(dynamicMember:)](foundation/date/formatstyle/attributed-swift.struct/subscript(dynamicmember:)-5y393.md)
- [subscript(dynamicMember:)](foundation/date/formatstyle/attributed-swift.struct/subscript(dynamicmember:)-8es0v.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)
