---
title: "appendInterpolation(_:style:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/localizedstringkey/stringinterpolation/appendinterpolation(_:style:)"
---

# appendInterpolation(_:style:)

Appends a formatted date to a string interpolation.

## Declaration

```swift
mutating func appendInterpolation(_ date: Date, style: Text.DateStyle)
```

## Parameters

- `date`: The date to append.
- `style`: A predefined style to format the date with.

## Discussion

Discussion Don’t call this method directly; it’s used by the compiler when interpreting string interpolations.

## See Also

### Appending to an interpolation

- [appendInterpolation(_:)](swiftui/localizedstringkey/stringinterpolation/appendinterpolation(_:).md)
- [appendInterpolation(_:specifier:)](swiftui/localizedstringkey/stringinterpolation/appendinterpolation(_:specifier:).md)
- [appendInterpolation(_:format:)](swiftui/localizedstringkey/stringinterpolation/appendinterpolation(_:format:).md)
- [appendInterpolation(_:formatter:)](swiftui/localizedstringkey/stringinterpolation/appendinterpolation(_:formatter:).md)
- [appendInterpolation(timerInterval:pauseTime:countsDown:showsHours:)](swiftui/localizedstringkey/stringinterpolation/appendinterpolation(timerinterval:pausetime:countsdown:showshours:).md)
- [appendLiteral(_:)](swiftui/localizedstringkey/stringinterpolation/appendliteral(_:).md)
