Skip to content

Commit ffee818

Browse files
authored
docs(material/datepicker): clarify moment adapter package (#22820)
Clarifies that the moment date adapter lives in its own npm package. Also removes language about _recommending_ the moment adapter. Fixes #18539
1 parent 3462c22 commit ffee818

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/material/datepicker/datepicker.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ The easiest way to ensure this is to import one of the provided date modules:
325325
</tbody>
326326
</table>
327327

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

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

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

0 commit comments

Comments
 (0)