---
title: includingFractionalSeconds
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/date/iso8601formatstyle/includingfractionalseconds
---

# includingFractionalSeconds

If set, the style includes fractional seconds when formatting. Before Swift 6.2, if true when parsing, fractional seconds must be present. If false when parsing, fractional seconds must not be present. After Swift 6.2, fractional seconds may be present in the String regardless of the setting of this property.

## Declaration

```swift
var includingFractionalSeconds: Bool { get }
```
