<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/DateFormatter/Behavior",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:@E@NSDateFormatterBehavior"
  },
  "title" : "DateFormatter.Behavior"
}
-->

# DateFormatter.Behavior

Constants that specify the behavior `NSDateFormatter` should exhibit.

```
enum Behavior
```

## Topics

### Constants

[`NSDateFormatterBehaviorDefault`](/documentation/Foundation/DateFormatter/Behavior/default)

[`NSDateFormatterBehavior10_0`](/documentation/Foundation/DateFormatter/Behavior/behavior10_0)

[`NSDateFormatterBehavior10_4`](/documentation/Foundation/DateFormatter/Behavior/behavior10_4)

## Relationships

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Sendable`](/documentation/Swift/Sendable)

[`Equatable`](/documentation/Swift/Equatable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)