---
title: DateComponents.ISO8601FormatStyle
framework: foundation
role: symbol
role_heading: Structure
path: foundation/datecomponents/iso8601formatstyle
---

# DateComponents.ISO8601FormatStyle

Options for generating and parsing string representations of dates following the ISO 8601 standard.

## Declaration

```swift
struct ISO8601FormatStyle
```

## Topics

### Initializers

- [init(dateSeparator:dateTimeSeparator:timeSeparator:timeZoneSeparator:includingFractionalSeconds:timeZone:)](foundation/datecomponents/iso8601formatstyle/init(dateseparator:datetimeseparator:timeseparator:timezoneseparator:includingfractionalseconds:timezone:).md)

### Instance Properties

- [dateSeparator](foundation/datecomponents/iso8601formatstyle/dateseparator.md)
- [dateTimeSeparator](foundation/datecomponents/iso8601formatstyle/datetimeseparator.md)
- [includingFractionalSeconds](foundation/datecomponents/iso8601formatstyle/includingfractionalseconds.md)
- [timeSeparator](foundation/datecomponents/iso8601formatstyle/timeseparator.md)
- [timeZone](foundation/datecomponents/iso8601formatstyle/timezone.md)
- [timeZoneSeparator](foundation/datecomponents/iso8601formatstyle/timezoneseparator.md)

### Instance Methods

- [dateSeparator(_:)](foundation/datecomponents/iso8601formatstyle/dateseparator(_:).md)
- [dateTimeSeparator(_:)](foundation/datecomponents/iso8601formatstyle/datetimeseparator(_:).md)
- [day()](foundation/datecomponents/iso8601formatstyle/day().md)
- [month()](foundation/datecomponents/iso8601formatstyle/month().md)
- [time(includingFractionalSeconds:)](foundation/datecomponents/iso8601formatstyle/time(includingfractionalseconds:).md)
- [timeSeparator(_:)](foundation/datecomponents/iso8601formatstyle/timeseparator(_:).md)
- [timeZone(separator:)](foundation/datecomponents/iso8601formatstyle/timezone(separator:).md)
- [timeZoneSeparator(_:)](foundation/datecomponents/iso8601formatstyle/timezoneseparator(_:).md)
- [weekOfYear()](foundation/datecomponents/iso8601formatstyle/weekofyear().md)
- [year()](foundation/datecomponents/iso8601formatstyle/year().md)

## Relationships

### Conforms To

- [Copyable](swift/copyable.md)
- [CustomConsumingRegexComponent](swift/customconsumingregexcomponent.md)
- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [FormatStyle](foundation/formatstyle.md)
- [Hashable](swift/hashable.md)
- [ParseStrategy](foundation/parsestrategy.md)
- [ParseableFormatStyle](foundation/parseableformatstyle.md)
- [RegexComponent](swift/regexcomponent.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
