Help articles

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.

This page describes a Studio v2 plugin

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

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

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

Studio v2

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

Was this page helpful?