---
title: "CFDateFormatterGetFormat(_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfdateformattergetformat(_:)"
---

# CFDateFormatterGetFormat(_:)

Returns a format string for the given date formatter object.

## Declaration

```swift
func CFDateFormatterGetFormat(_ formatter: CFDateFormatter!) -> CFString!
```

## Parameters

- `formatter`: The date formatter to examine.

## Return Value

Return Value The format string for formatter as was specified by calling the CFDateFormatterSetFormat(_:_:) function, or derived from the date formatter’s date or time styles. Ownership follows the The Get Rule.

## See Also

### Getting Information About a Date Formatter

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