<!--
{
  "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

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

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

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

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

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

[`yearMonthDay`](/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.



---

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)