# datePickerEditor (@salmonui/calendars/date-picker/data-grid)

> The datePickerEditor function of @salmonui/calendars/date-picker/data-grid: A renderEditor for date (default granularity: 'day') and datetime (granularity: 'minute') columns. Date-only cells hold UTC midnight, as the grid's column parser stores them; the editor writes ISO dates back, and date-times as Date instants (in timeZone, else the host zone).

Canonical: https://salmonui.dev/docs/reference/calendars/date-picker-data-grid/datePickerEditor

```ts
import { datePickerEditor } from '@salmonui/calendars/date-picker/data-grid';
```

Entry index: https://salmonui.dev/docs/reference/calendars/date-picker-data-grid (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/calendars/date-picker-data-grid.md).

## Reference

Kind: function

```ts
function datePickerEditor(options?: DatePickerEditorOptions): (ctx: DatePickerEditorContext) => ReactElement;
```

A `renderEditor` for `date` (default `granularity: 'day'`) and `datetime`
(`granularity: 'minute'`) columns. Date-only cells hold UTC midnight, as the
grid's column parser stores them; the editor writes ISO dates back, and
date-times as `Date` instants (in `timeZone`, else the host zone).
