---
title: DateFormatter.Behavior
framework: foundation
role: symbol
role_heading: Enumeration
path: foundation/dateformatter/behavior
---

# DateFormatter.Behavior

Constants that specify the behavior NSDateFormatter should exhibit.

## Declaration

```swift
enum Behavior
```

## Topics

### Constants

- [DateFormatter.Behavior.default](foundation/dateformatter/behavior/default.md)
- [DateFormatter.Behavior.behavior10_0](foundation/dateformatter/behavior/behavior10_0.md)
- [DateFormatter.Behavior.behavior10_4](foundation/dateformatter/behavior/behavior10_4.md)

### Initializers

- [init(rawValue:)](foundation/dateformatter/behavior/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Constants

- [DateFormatter.Style](foundation/dateformatter/style.md)
