---
title: dateStyle
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/dateintervalformatter/datestyle
---

# dateStyle

The style to use when formatting day, month, and year information.

## Declaration

```swift
var dateStyle: DateIntervalFormatter.Style { get set }
```

## Discussion

Discussion Set this property to an appropriate value before generating string values. The default value of this property is DateIntervalFormatter.Style.none.

## See Also

### Configuring the Formatter Options

- [timeStyle](foundation/dateintervalformatter/timestyle.md)
- [dateTemplate](foundation/dateintervalformatter/datetemplate.md)
- [calendar](foundation/dateintervalformatter/calendar.md)
- [locale](foundation/dateintervalformatter/locale.md)
- [timeZone](foundation/dateintervalformatter/timezone.md)
