<!--
{
  "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" : "Foundation",
  "identifier" : "/documentation/Foundation/ParseStrategy/iso8601-8z0au",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:10Foundation13ParseStrategyPA2A4DateV18ISO8601FormatStyleVRszrlE7iso8601AGvpZ"
  },
  "title" : "iso8601"
}
-->

# iso8601

A style for formatting a date in accordance with the ISO-8601 standard.

```
static var iso8601: Date.ISO8601FormatStyle { get }
```

## Discussion

Use the dot-notation form of this type property when the call point allows the use of
[`Date.ISO8601FormatStyle`](/documentation/Foundation/Date/ISO8601FormatStyle); in other words, when the value type is `Date`. Typically, you
use this with the [`formatted(_:)`](/documentation/Foundation/Date/formatted(_:)) method of `Date`.

---

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)