---
title: "CFDateFormatterGetLocale(_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfdateformattergetlocale(_:)"
---

# CFDateFormatterGetLocale(_:)

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

## Declaration

```swift
func CFDateFormatterGetLocale(_ formatter: CFDateFormatter!) -> CFLocale!
```

## Parameters

- `formatter`: The date formatter object to examine.

## Return Value

Return Value The locale object used to create formatter. Ownership follows the The Get Rule.

## See Also

### Getting Information About a Date Formatter

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