LocalizationProvider API
Demos
For examples and details on the usage of this React component, visit the component demo pages:
Import
import { LocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider';
// or
import { LocalizationProvider } from '@mui/x-date-pickers';
// or
import { LocalizationProvider } from '@mui/x-date-pickers-pro';
Props
Date library adapter class function.
See the localization provider date adapter setup section for more details.
Type:
func
Formats that are used for any child pickers
Type:
{ dayOfMonth?: string, fullDate?: string, fullDateTime?: string, fullDateTime12h?: string, fullDateTime24h?: string, fullDateWithWeekday?: string, fullTime?: string, fullTime12h?: string, fullTime24h?: string, hours12h?: string, hours24h?: string, keyboardDate?: string, keyboardDateTime?: string, keyboardDateTime12h?: string, keyboardDateTime24h?: string, meridiem?: string, minutes?: string, month?: string, monthAndDate?: string, monthAndYear?: string, monthShort?: string, normalDate?: string, normalDateWithWeekday?: string, seconds?: string, shortDate?: string, weekday?: string, weekdayShort?: string, year?: string }
Date library instance you are using, if it has some global overrides jsx dateLibInstance={momentTimeZone}
Type:
any
The component cannot hold a ref.