> For AI agents: the complete Sanity documentation index is available at [https://www.sanity.io/docs/llms.txt](https://www.sanity.io/docs/llms.txt).

# Renamed plugin @sanity/date-input

The Studio v2 plugin @sanity/date-input was renamed @sanity/rich-date-input. On Studio v3 and later, install and register the plugin directly.

> [!WARNING]
> This page describes a Studio v2 plugin
> The rename warning that brought you here is printed by `@sanity/date-input`, which loads only through the Studio v2 parts system. If you're on Studio v3 or later, follow **Studio v3 and later** below. For most fields, the built-in [date](https://www.sanity.io/docs/studio/date-type) and [datetime](https://www.sanity.io/docs/studio/datetime-type) types are enough. `@sanity/rich-date-input` adds a timezone-aware datetime type and input component.

The plugin `@sanity/date-input` has been renamed to `@sanity/rich-date-input` to better reflect its purpose.

## What should I do?

The steps depend on which major version of Sanity Studio you're running.

### Studio v3 and later

1. Install the package with `npm install @sanity/rich-date-input`
2. Add `richDate()` to the `plugins` array in your Studio configuration:

**sanity.config.ts**

```typescript
import {defineConfig} from 'sanity'
import {richDate} from '@sanity/rich-date-input'

export default defineConfig({
  projectId: 'YOUR_PROJECT_ID',
  dataset: 'production',
  plugins: [richDate()],
})
```

With the plugin registered, you can use `richDate` as a field type in your schema.

### Studio v2

1. Install the Studio v2 release of the package with `npm install @sanity/rich-date-input@2`
2. Remove the `@sanity/date-input` entry from the `plugins` array in your `sanity.json`.
3. Add the `richDate` type definition from the plugin to your schema, for example:

**schemas/schema.js**

```javascript
import richDate from 'part:@sanity/form-builder/input/rich-date/schema'

// ...
export default createSchema({
  name: 'mySchema',
  types: [
    //...
    richDate
  ]
})
```

