---
title: "timeZoneSeparator(_:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/date/iso8601formatstyle/timezoneseparator(_:)"
---

# timeZoneSeparator(_:)

Modifies the ISO 8601 date format style to use the specified time zone separator.

## Declaration

```swift
func timeZoneSeparator(_ 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 specified time zone separator style.

## Discussion

Discussion Possible values of Date.ISO8601FormatStyle.TimeZoneSeparator are Date.ISO8601FormatStyle.TimeZoneSeparator.colon and Date.ISO8601FormatStyle.TimeZoneSeparator.omitted. For more information about ISO 8601 formatted dates, see the Date.ISO8601FormatStyle.

## See Also

### Modifying Times in an ISO 8601 Format Style

- [time(includingFractionalSeconds:)](foundation/date/iso8601formatstyle/time(includingfractionalseconds:).md)
- [timeSeparator(_:)](foundation/date/iso8601formatstyle/timeseparator(_:).md)
- [timeZone(separator:)](foundation/date/iso8601formatstyle/timezone(separator:).md)
