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

# NSDatePickerCell

An object that controls the behavior of a date picker, or of a single date picker cell in a matrix.

```
class NSDatePickerCell
```

## Topics

### Configuring Appearance

[`backgroundColor`](/documentation/AppKit/NSDatePickerCell/backgroundColor)

The cell’s background color.

[`drawsBackground`](/documentation/AppKit/NSDatePickerCell/drawsBackground)

A Boolean value indicating whether the cell draws its background.

[`textColor`](/documentation/AppKit/NSDatePickerCell/textColor)

The cell’s text color.

[`datePickerStyle`](/documentation/AppKit/NSDatePickerCell/datePickerStyle)

The date picker style to use.

[`datePickerElements`](/documentation/AppKit/NSDatePickerCell/datePickerElements)

A bitmask that indicates which visual elements are shown by the date picker.

### Range Mode

[`datePickerMode`](/documentation/AppKit/NSDatePickerCell/datePickerMode)

The mode in use by the date picker.

### Object Values

[`dateValue`](/documentation/AppKit/NSDatePickerCell/dateValue)

The date currently specified in the picker.

[`timeInterval`](/documentation/AppKit/NSDatePickerCell/timeInterval)

The time interval that represents the date range.

[`calendar`](/documentation/AppKit/NSDatePickerCell/calendar)

The calendar used by the date picker.

[`locale`](/documentation/AppKit/NSDatePickerCell/locale)

The locale used to display dates.

[`timeZone`](/documentation/AppKit/NSDatePickerCell/timeZone)

The time zone used to display time-related values.

### Date Range Constraints

[`minDate`](/documentation/AppKit/NSDatePickerCell/minDate)

The minimum date that the picker allows as input.

[`maxDate`](/documentation/AppKit/NSDatePickerCell/maxDate)

The maximum date that the picker allows as input.

### Getting and Setting the Delegate

[`delegate`](/documentation/AppKit/NSDatePickerCell/delegate)

The delegate associated with the date picker.

### Constants

[`NSDatePicker.Style`](/documentation/AppKit/NSDatePicker/Style)

Constants that define the visual appearance of the date picker cell.

[`NSDatePicker.Mode`](/documentation/AppKit/NSDatePicker/Mode)

Constants that define whether the picker provides a single date, or a range of dates.

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

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

### Initializers

[`init(coder:)`](/documentation/AppKit/NSDatePickerCell/init(coder:))

[`init(textCell:)`](/documentation/AppKit/NSDatePickerCell/init(textCell:))



---

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)