Skip to content

Commit 666a3ad

Browse files
committed
docs(material/datepicker): clarify moment adapter package
Clarifies that the moment date adapter lives in its own npm package. Also removes language about _recommending_ the moment adapter. Fixes #18539
1 parent 298fed2 commit 666a3ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/material/datepicker/datepicker.md

Lines changed: 2 additions & 2 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,7 +351,7 @@ 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`
354+
object is the inability to set the parse format. You can use the `MomentDateAdapter`
355355
or a custom `DateAdapter` that works with the formatting/parsing library of your choice.*
356356

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

0 commit comments

Comments
 (0)