---
title: "format(_:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/date/formatstyle/attributed-swift.struct/format(_:)"
---

# format(_:)

## Declaration

```swift
func format(_ value: Date) -> AttributedString
```
