---
title: dateTimeSeparator
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/date/iso8601formatstyle/datetimeseparator-swift.property
---

# dateTimeSeparator

The character used to separate the date and time components of an ISO 8601 string representation of a date.

## Declaration

```swift
var dateTimeSeparator: Date.ISO8601FormatStyle.DateTimeSeparator { get }
```

## See Also

### Modifying an ISO 8601 Format Style

- [dateSeparator](foundation/date/iso8601formatstyle/dateseparator-swift.property.md)
- [timeZone](foundation/date/iso8601formatstyle/timezone.md)
- [dateTimeSeparator(_:)](foundation/date/iso8601formatstyle/datetimeseparator(_:).md)
