---
title: iso8601Components
framework: swift
role: symbol
role_heading: Type Property
path: swift/regexcomponent/iso8601components
---

# iso8601Components

Creates a regex component to match an ISO 8601 date and time, such as “2015-11-14’T’15:05:03’Z’”, and capture the string as a DateComponents using the time zone as specified in the string.

## Declaration

```swift
static var iso8601Components: DateComponents.ISO8601FormatStyle { get }
```
