Skip to content

Commit 2e5fab6

Browse files
authored
docs(material/datepicker): mention that its ok to subclass NativeDateAdapter (#26119)
1 parent b3da94a commit 2e5fab6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/material/datepicker/datepicker.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,9 @@ information about `MAT_DATE_FORMATS`.
480480
export class MyApp {}
481481
```
482482

483+
If you need to work with native `Date` objects, but need custom behavior (for example custom date
484+
parsing), you can consider subclassing `NativeDateAdapter`.
485+
483486
#### Customizing the parse and display formats
484487

485488
The `MAT_DATE_FORMATS` object is a collection of formats that the datepicker uses when parsing

0 commit comments

Comments
 (0)