<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSDatePicker/datePickerElements",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSDatePicker(py)datePickerElements"
  },
  "title" : "datePickerElements"
}
-->

# datePickerElements

A bitmask that indicates which visual elements of the date picker are currently shown, and which won’t be usable because they are hidden.

```
var datePickerElements: NSDatePicker.ElementFlags { get set }
```

## Discussion

See “Constants” in [`NSDatePickerCell`](/documentation/AppKit/NSDatePickerCell) for a description of the possible values.

---

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)