<!--
{
  "availability" : [
    "App Store Receipts: 1.0.0 - 1.7.0"
  ],
  "documentType" : "symbol",
  "framework" : "AppStoreReceipts",
  "identifier" : "/documentation/AppStoreReceipts/expires_date_ms",
  "metadataVersion" : "0.1.0",
  "role" : "Type",
  "symbol" : {
    "kind" : "Type",
    "modules" : [
      "App Store Receipts"
    ],
    "preciseIdentifier" : "data:store_receipts:expires_date_ms"
  },
  "title" : "expires_date_ms"
}
-->

# expires_date_ms

The time, in milliseconds, a subscription expires or renews.

```
string expires_date_ms
```

## Discussion

This field is returned in the JSON response, in the [`responseBody.Latest_receipt_info`](/documentation/AppStoreReceipts/responseBody/Latest_receipt_info-data.dictionary) and [`responseBody.Receipt.In_app`](/documentation/AppStoreReceipts/responseBody/Receipt-data.dictionary/In_app-data.dictionary) arrays.

The time a subscription expires or when it will renew, in UNIX epoch time format, in milliseconds. Use this time format for processing dates.

You can use this date value to:

- Manage auto-renewable subscriptions. Store this value, `original_transaction_id`, `product_id`, and `purchase_date_ms` for each subscription, as a best practice.
- Identify the date the subscription renews or expires.
- Determine a user’s access to content or a service by comparing this date to the current date. After validating the latest receipt, continue providing service if the date is in the future. If the subscription expiration date for the latest renewal transaction has passed, the subscription has expired.

---

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)