diff --git a/src/material/datepicker/datepicker.md b/src/material/datepicker/datepicker.md index 8bca78ddd651..2aeea455e6a5 100644 --- a/src/material/datepicker/datepicker.md +++ b/src/material/datepicker/datepicker.md @@ -292,6 +292,11 @@ export class MyApp {} It's also possible to set the locale at runtime using the `setLocale` method of the `DateAdapter`. +**Note:** if you're using the `MatDateFnsModule`, you have to provide the data object for your +locale to `MAT_DATE_LOCALE` instead of the locale code, in addition to providing a configuration +compatible with `date-fns` to `MAT_DATE_FORMATS`. Locale data for `date-fns` can be imported +from `date-fns/locale`. + #### Choosing a date implementation and date format settings