From 6f52973d8aa4219f43a2fa943459eb271106494e Mon Sep 17 00:00:00 2001 From: Miles Malerba Date: Tue, 29 Nov 2022 17:52:59 +0000 Subject: [PATCH] docs(material/datepicker): mention that its ok to subclass NativeDateAdapter --- src/material/datepicker/datepicker.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/material/datepicker/datepicker.md b/src/material/datepicker/datepicker.md index 3811f1f978fd..6456aa31e3d3 100644 --- a/src/material/datepicker/datepicker.md +++ b/src/material/datepicker/datepicker.md @@ -480,6 +480,9 @@ information about `MAT_DATE_FORMATS`. export class MyApp {} ``` +If you need to work with native `Date` objects, but need custom behavior (for example custom date +parsing), you can consider subclassing `NativeDateAdapter`. + #### Customizing the parse and display formats The `MAT_DATE_FORMATS` object is a collection of formats that the datepicker uses when parsing