packages/material-ui-lab/src/internal/pickers/date-utils.ts/parsePickerInputValue
export function parsePickerInputValue(
  utils: MuiPickersAdapter,
  { value }: BasePickerProps,
): unknown | null {
  const parsedValue = utils.date(value);

  return utils.isValid(parsedValue) ? parsedValue : null;
}