<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/LocalizedStringKey/StringInterpolation/appendInterpolation(_:style:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI18LocalizedStringKeyV0D13InterpolationV06appendF0_5styley10Foundation4DateV_AA4TextV0J5StyleVtF"
  },
  "title" : "appendInterpolation(_:style:)"
}
-->

# appendInterpolation(_:style:)

Appends a formatted date to a string interpolation.

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

## Parameters

`date`

The date to append.

`style`

A predefined style to format the date with.

## Discussion

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)