---
title: httpComponents
framework: swift
role: symbol
role_heading: Type Property
path: swift/regexcomponent/httpcomponents
---

# httpComponents

Creates a regex component to match an HTTP 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 httpComponents: DateComponents.HTTPFormatStyle { get }
```
