We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94f2f7e commit cbef92aCopy full SHA for cbef92a
src/material/datepicker/datepicker.md
@@ -292,6 +292,11 @@ export class MyApp {}
292
293
It's also possible to set the locale at runtime using the `setLocale` method of the `DateAdapter`.
294
295
+**Note:** if you're using the `MatDateFnsModule`, you have to provide the data object for your
296
+locale to `MAT_DATE_LOCALE` instead of the locale code, in addition to providing a configuration
297
+compatible with `date-fns` to `MAT_DATE_FORMATS`. Locale data for `date-fns` can be imported
298
+from `date-fns/locale`.
299
+
300
<!-- example(datepicker-locale) -->
301
302
#### Choosing a date implementation and date format settings
0 commit comments