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

# dateStyle

The date style of the receiver.

## Declaration

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

## See Also

### Managing Formats and Styles

- [timeStyle](foundation/dateformatter/timestyle.md)
- [dateFormat](foundation/dateformatter/dateformat.md)
- [setLocalizedDateFormatFromTemplate(_:)](foundation/dateformatter/setlocalizeddateformatfromtemplate(_:).md)
- [dateFormat(fromTemplate:options:locale:)](foundation/dateformatter/dateformat(fromtemplate:options:locale:).md)
- [formattingContext](foundation/dateformatter/formattingcontext.md)
