---
title: Date.FormatStyle.Symbol.TimeZone
framework: foundation
role: symbol
role_heading: Structure
path: foundation/date/formatstyle/symbol/timezone
---

# Date.FormatStyle.Symbol.TimeZone

A type that specifies a format for the time zone in a date format style.

## Declaration

```swift
struct TimeZone
```

## Overview

Overview The type Date.FormatStyle.Symbol.TimeZone includes static factory variables and methods that create custom Date.FormatStyle.Symbol.TimeZone objects:  |   |   |   |   |   |   |   |  To customize the hour format in a string representation of a Date, use timeZone(_:). The following example shows a variety of Date.FormatStyle.Symbol.TimeZone format styles applied to a date. let meetingDate = Date() // Feb 9, 2021 at 7:00 PM

meetingDate.formatted(Date.FormatStyle().timeZone(.specificName(.short))) // CDT meetingDate.formatted(Date.FormatStyle().timeZone(.specificName(.long))) // Central Daylight Time

meetingDate.formatted(Date.FormatStyle().timeZone(.genericName(.short))) // CT meetingDate.formatted(Date.FormatStyle().timeZone(.genericName(.long))) // Central Time

meetingDate.formatted(Date.FormatStyle().timeZone(.iso8601(.short))) // -0500 meetingDate.formatted(Date.FormatStyle().timeZone(.iso8601(.long))) // -05:00

meetingDate.formatted(Date.FormatStyle().timeZone(.localizedGMT(.short))) // GMT-5 meetingDate.formatted(Date.FormatStyle().timeZone(.localizedGMT(.long))) // GMT-05:00

meetingDate.formatted(Date.FormatStyle().timeZone(.identifier(.short))) // uschi meetingDate.formatted(Date.FormatStyle().timeZone(.identifier(.long))) // America/Chicago

meetingDate.formatted(Date.FormatStyle().timeZone(.exemplarLocation)) // Chicago

meetingDate.formatted(Date.FormatStyle().timeZone(.genericLocation)) // Chicago Time

If you don’t provide a format, the system formats a timezone using the short specificName(_:) static function with the width Date.FormatStyle.Symbol.TimeZone.Width.short. For more information about formatting dates, see the Date.FormatStyle.

## Topics

### Modifying a Time Zone

- [specificName(_:)](foundation/date/formatstyle/symbol/timezone/specificname(_:).md)
- [genericName(_:)](foundation/date/formatstyle/symbol/timezone/genericname(_:).md)
- [iso8601(_:)](foundation/date/formatstyle/symbol/timezone/iso8601(_:).md)
- [localizedGMT(_:)](foundation/date/formatstyle/symbol/timezone/localizedgmt(_:).md)
- [identifier(_:)](foundation/date/formatstyle/symbol/timezone/identifier(_:).md)
- [exemplarLocation](foundation/date/formatstyle/symbol/timezone/exemplarlocation.md)
- [genericLocation](foundation/date/formatstyle/symbol/timezone/genericlocation.md)

### Comparing Time Zones

- [==(_:_:)](foundation/date/==(_:_:).md)

### Supporting Enumerations

- [Date.FormatStyle.Symbol.TimeZone.Width](foundation/date/formatstyle/symbol/timezone/width.md)

### Type Properties

- [omitted](foundation/date/formatstyle/symbol/timezone/omitted.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Modifying Date Style Format Symbols

- [Date.FormatStyle.Symbol.CyclicYear](foundation/date/formatstyle/symbol/cyclicyear.md)
- [Date.FormatStyle.Symbol.Day](foundation/date/formatstyle/symbol/day.md)
- [Date.FormatStyle.Symbol.DayOfYear](foundation/date/formatstyle/symbol/dayofyear.md)
- [Date.FormatStyle.Symbol.DayPeriod](foundation/date/formatstyle/symbol/dayperiod.md)
- [Date.FormatStyle.Symbol.Era](foundation/date/formatstyle/symbol/era.md)
- [Date.FormatStyle.Symbol.Hour](foundation/date/formatstyle/symbol/hour.md)
- [Date.FormatStyle.Symbol.Minute](foundation/date/formatstyle/symbol/minute.md)
- [Date.FormatStyle.Symbol.Month](foundation/date/formatstyle/symbol/month.md)
- [Date.FormatStyle.Symbol.Quarter](foundation/date/formatstyle/symbol/quarter.md)
- [Date.FormatStyle.Symbol.Second](foundation/date/formatstyle/symbol/second.md)
- [Date.FormatStyle.Symbol.SecondFraction](foundation/date/formatstyle/symbol/secondfraction.md)
- [Date.FormatStyle.Symbol.StandaloneMonth](foundation/date/formatstyle/symbol/standalonemonth.md)
- [Date.FormatStyle.Symbol.StandaloneQuarter](foundation/date/formatstyle/symbol/standalonequarter.md)
- [Date.FormatStyle.Symbol.StandaloneWeekday](foundation/date/formatstyle/symbol/standaloneweekday.md)
- [Date.FormatStyle.Symbol.VerbatimHour](foundation/date/formatstyle/symbol/verbatimhour.md)
