---
title: "CFDateFormatterGetDateStyle(_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfdateformattergetdatestyle(_:)"
---

# CFDateFormatterGetDateStyle(_:)

Returns the date style used to create the given date formatter object.

## Declaration

```swift
func CFDateFormatterGetDateStyle(_ formatter: CFDateFormatter!) -> CFDateFormatterStyle
```

## Parameters

- `formatter`: The date formatter to examine.

## Return Value

Return Value The date style used to create formatter.

## See Also

### Getting Information About a Date Formatter

- [CFDateFormatterCopyProperty(_:_:)](corefoundation/cfdateformattercopyproperty(_:_:).md)
- [CFDateFormatterGetFormat(_:)](corefoundation/cfdateformattergetformat(_:).md)
- [CFDateFormatterGetLocale(_:)](corefoundation/cfdateformattergetlocale(_:).md)
- [CFDateFormatterGetTimeStyle(_:)](corefoundation/cfdateformattergettimestyle(_:).md)
