---
title: defaultFormatterBehavior
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/dateformatter/defaultformatterbehavior
---

# defaultFormatterBehavior

Returns the default formatting behavior for instances of the class.

## Declaration

```swift
class var defaultFormatterBehavior: DateFormatter.Behavior { get set }
```

## Return Value

Return Value The default formatting behavior for instances of the class. For possible values, see DateFormatter.Behavior.

## Discussion

Discussion For iOS and for macOS applications linked against macOS 10.5 and later, the default is NSDateFormatterBehavior10_4.

## See Also

### Managing Behavior Version

- [formatterBehavior](foundation/dateformatter/formatterbehavior.md)
