---
title: NSDatePicker.ElementFlags
framework: appkit
role: symbol
role_heading: Structure
path: appkit/nsdatepicker/elementflags
---

# NSDatePicker.ElementFlags

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

## Declaration

```swift
struct ElementFlags
```

## Overview

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

## Topics

### Constants

- [era](appkit/nsdatepicker/elementflags/era.md)
- [hourMinute](appkit/nsdatepicker/elementflags/hourminute.md)
- [hourMinuteSecond](appkit/nsdatepicker/elementflags/hourminutesecond.md)
- [timeZone](appkit/nsdatepicker/elementflags/timezone.md)
- [yearMonth](appkit/nsdatepicker/elementflags/yearmonth.md)
- [yearMonthDay](appkit/nsdatepicker/elementflags/yearmonthday.md)

### Initializers

- [init(rawValue:)](appkit/nsdatepicker/elementflags/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [ExpressibleByArrayLiteral](swift/expressiblebyarrayliteral.md)
- [OptionSet](swift/optionset.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [SetAlgebra](swift/setalgebra.md)

## See Also

### Configuring Date Pickers

- [isBezeled](appkit/nsdatepicker/isbezeled.md)
- [isBordered](appkit/nsdatepicker/isbordered.md)
- [backgroundColor](appkit/nsdatepicker/backgroundcolor.md)
- [drawsBackground](appkit/nsdatepicker/drawsbackground.md)
- [textColor](appkit/nsdatepicker/textcolor.md)
- [datePickerStyle](appkit/nsdatepicker/datepickerstyle.md)
- [presentsCalendarOverlay](appkit/nsdatepicker/presentscalendaroverlay.md)
- [delegate](appkit/nsdatepicker/delegate.md)
- [datePickerElements](appkit/nsdatepicker/datepickerelements.md)
- [NSDatePicker.Style](appkit/nsdatepicker/style.md)
