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

# dateSeparator

The character used to separate the components of a date.

## Declaration

```swift
var dateSeparator: Date.ISO8601FormatStyle.DateSeparator { get }
```

## See Also

### Modifying an ISO 8601 Format Style

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