---
title: "timeZone(separator:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/date/iso8601formatstyle/timezone(separator:)"
---

# timeZone(separator:)

Modifies the ISO 8601 date format style to include the time zone in the formatted output.

## Declaration

```swift
func timeZone(separator: Date.ISO8601FormatStyle.TimeZoneSeparator) -> Date.ISO8601FormatStyle
```

## Parameters

- `separator`: Character used to separate the time and time zone in a date.

## Return Value

Return Value An ISO 8601 date format style modified to include the time zone.

## Discussion

Discussion The default Date.ISO8601FormatStyle doesn’t include the time zone. For more information about formatting dates, see the Date.FormatStyle.

## See Also

### Modifying Times in an ISO 8601 Format Style

- [time(includingFractionalSeconds:)](foundation/date/iso8601formatstyle/time(includingfractionalseconds:).md)
- [timeSeparator(_:)](foundation/date/iso8601formatstyle/timeseparator(_:).md)
- [timeZoneSeparator(_:)](foundation/date/iso8601formatstyle/timezoneseparator(_:).md)
