<!--
{
  "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/Date/FormatStyle/timeZone(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:10Foundation4DateV11FormatStyleV8timeZoneyA2E6SymbolV04TimeF0VF"
  },
  "title" : "timeZone(_:)"
}
-->

# timeZone(_:)

Modifies the date format style to use the specified time zone format style.

```
func timeZone(_ format: Date.FormatStyle.Symbol.TimeZone = .specificName(.short)) -> Date.FormatStyle
```

## Parameters

`format`

The time zone format style applied to the date format style.

## Return Value

A date format style modified to include the specified time zone format style.

## Discussion

Values of [`Date.FormatStyle.Symbol.TimeZone`](/documentation/Foundation/Date/FormatStyle/Symbol/TimeZone) are [`exemplarLocation`](/documentation/Foundation/Date/FormatStyle/Symbol/TimeZone/exemplarLocation) and [`genericLocation`](/documentation/Foundation/Date/FormatStyle/Symbol/TimeZone/genericLocation).

Static methods that return [`Date.FormatStyle.Symbol.TimeZone`](/documentation/Foundation/Date/FormatStyle/Symbol/TimeZone) objects include [`genericName(_:)`](/documentation/Foundation/Date/FormatStyle/Symbol/TimeZone/genericName(_:)), [`identifier(_:)`](/documentation/Foundation/Date/FormatStyle/Symbol/TimeZone/identifier(_:)),  [`iso8601(_:)`](/documentation/Foundation/Date/FormatStyle/Symbol/TimeZone/iso8601(_:)), [`localizedGMT(_:)`](/documentation/Foundation/Date/FormatStyle/Symbol/TimeZone/localizedGMT(_:)), and [`specificName(_:)`](/documentation/Foundation/Date/FormatStyle/Symbol/TimeZone/specificName(_:)).

---

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)