<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "StoreKit",
  "identifier" : "/documentation/StoreKit/Product/subscriptionPeriodFormatStyle",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "StoreKit"
    ],
    "preciseIdentifier" : "s:8StoreKit7ProductV29subscriptionPeriodFormatStyle10Foundation4DateV010ComponentsfG0Vvp"
  },
  "title" : "subscriptionPeriodFormatStyle"
}
-->

# subscriptionPeriodFormatStyle

The format style for the date components related to a subscription’s duration.

```
@backDeployed(before: iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, macCatalyst 16.0)
var subscriptionPeriodFormatStyle: Date.ComponentsFormatStyle { get }
```

## Discussion

Use this format style to format text that describes a subscription period, including its length and unit, such as “1 week”, “2 months”, and so on. Use this style with the [`formatted(_:referenceDate:)`](/documentation/StoreKit/Product/SubscriptionPeriod/formatted(_:referenceDate:)-3t7wd) method on [`Product.SubscriptionPeriod`](/documentation/StoreKit/Product/SubscriptionPeriod) to format the subscription period for the App Store locale.

> Note:
> When using ``doc://com.apple.storekit/documentation/StoreKit/Product/subscriptionPeriodFormatStyle`` on systems earlier than iOS 16, macOS 13, tvOS 16, and watchOS 9, the property may return a format style with a sentinel locale identifier of `“xx_XX”` in uncommon cases, including if the server has an error, or while testing your app using StoreKit Testing in Xcode. For StoreKit testing, use a later OS version.

---

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)