Skip to content

[docs] Make it clearer when to use AdapterDateFns or AdapterDateFnsV3  #15941

Open
@mikebski

Description

Related page

https://mui.com/x/react-date-pickers/adapters-locale/#with-date-fns

Kind of issue

Broken demo

Issue description

In the quickstart, there should be a quick mention of which AdapterDateFns will work with which version. I spent a lot of time getting an import error and the docs on the versions of the adapter are pretty buried, and searching for the answer via google did not give me anything. The error message is not helpful at all. See for details on that: https://stackoverflow.com/questions/79286567/x-date-formatters-missing-lib-format-longformatters-specifier-in-date-fns/79291448#79291448

I was also not able to get the latest version of Moment to work with the Adapter, so I switched to date-fns instead. If that is a version conflict there should be mention of that in the quickstart.

Context

I'm trying to use the quickstart, and almost gave up entirely until I spent hours and hours to find the adapter versioning bit.

Search keywords: AdapterDateFns AdapterDateFnsV3 and Moment support

Metadata

Assignees

No one assigned

    Labels

    component: pickersThis is the name of the generic UI component, not the React module!docsImprovements or additions to the documentation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions