<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSDatePicker/ElementFlags",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSDatePickerElementFlags"
  },
  "title" : "NSDatePicker.ElementFlags"
}
-->

# NSDatePicker.ElementFlags

Constants that specify the date and time elements displayed by the picker.

```
struct ElementFlags
```

## Overview

You can combine these constants using the C bitwise `OR` operator.

## Topics

### Constants

[`NSDatePickerElementFlagEra`](/documentation/AppKit/NSDatePicker/ElementFlags/era)

[`NSDatePickerElementFlagHourMinute`](/documentation/AppKit/NSDatePicker/ElementFlags/hourMinute)

[`NSDatePickerElementFlagHourMinuteSecond`](/documentation/AppKit/NSDatePicker/ElementFlags/hourMinuteSecond)

[`NSDatePickerElementFlagTimeZone`](/documentation/AppKit/NSDatePicker/ElementFlags/timeZone)

[`NSDatePickerElementFlagYearMonth`](/documentation/AppKit/NSDatePicker/ElementFlags/yearMonth)

[`NSDatePickerElementFlagYearMonthDay`](/documentation/AppKit/NSDatePicker/ElementFlags/yearMonthDay)

### Deprecated

[`NSHourMinuteDatePickerElementFlag`](/documentation/AppKit/NSHourMinuteDatePickerElementFlag)

Display and allow editing of the hour and minute elements of the date.

[`NSHourMinuteSecondDatePickerElementFlag`](/documentation/AppKit/NSHourMinuteSecondDatePickerElementFlag)

Display and allow editing of the hour, minute and second elements of the date.

[`NSTimeZoneDatePickerElementFlag`](/documentation/AppKit/NSTimeZoneDatePickerElementFlag)

Display and allow editing of the time zone.

[`NSYearMonthDatePickerElementFlag`](/documentation/AppKit/NSYearMonthDatePickerElementFlag)

Display and allow editing of the year and month elements of the date.

[`NSYearMonthDayDatePickerElementFlag`](/documentation/AppKit/NSYearMonthDayDatePickerElementFlag)

Display and allow editing of the year, month and day elements of the date.

[`NSEraDatePickerElementFlag`](/documentation/AppKit/NSEraDatePickerElementFlag)

Display and allow editing of the era of the date, if applicable.

## Relationships

### Conforms To

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

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

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

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

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

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

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

[`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)