Skip to content

docs(material/datepicker): clarify moment adapter package #22820

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 28, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/material/datepicker/datepicker.md
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ The easiest way to ensure this is to import one of the provided date modules:
</tbody>
</table>

`MatMomentDateModule`
`MatMomentDateModule` (installed via `@angular/material-moment-adapter`)

<table>
<tbody>
Expand All @@ -351,8 +351,9 @@ The easiest way to ensure this is to import one of the provided date modules:
*Please note: `MatNativeDateModule` is based off the functionality available in JavaScript's
native [`Date` object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Date).
Thus it is not suitable for many locales. One of the biggest shortcomings of the native `Date`
object is the inability to set the parse format. We highly recommend using the `MomentDateAdapter`
or a custom `DateAdapter` that works with the formatting/parsing library of your choice.*
object is the inability to set the parse format. We strongly recommend using an adapter based on
a more robust formatting and parsing library. You can use the `MomentDateAdapter`
or a custom `DateAdapter` that works with the library of your choice.*

These modules include providers for `DateAdapter` and `MAT_DATE_FORMATS`.

Expand Down