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

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

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

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

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

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

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

### Initializers

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

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

## Relationships

### Conforms To

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

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

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

[`NSCopying`](/documentation/Foundation/NSCopying)

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

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

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

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

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

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

[`NSCoding`](/documentation/Foundation/NSCoding)

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

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

### Inherits From

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

---

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)