---
title: "CFDateFormatterSetProperty(_:_:_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfdateformattersetproperty(_:_:_:)"
---

# CFDateFormatterSetProperty(_:_:_:)

Sets a date formatter property using a key-value pair.

## Declaration

```swift
func CFDateFormatterSetProperty(_ formatter: CFDateFormatter!, _ key: CFString!, _ value: CFTypeRef!)
```

## Parameters

- `formatter`: The date formatter to modify.
- `key`: The name of the property to set. See doc://com.apple.corefoundation/documentation/CoreFoundation/date-formatter-property-keys for a description of possible values for this parameter.
- `value`: The value for key. This should be a CFType object corresponding to the specified key.

## See Also

### Configuring a Date Formatter

- [CFDateFormatterSetFormat(_:_:)](corefoundation/cfdateformattersetformat(_:_:).md)
