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

# http

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 Date using the time zone as specified in the string.

## Declaration

```swift
static var http: Date.HTTPFormatStyle { get }
```
