packages/material-ui-lab/src/DateTimePicker/date-time-utils.ts/validateDateAndTime
export function validateDateAndTime<TDate>(
  utils: MuiPickersAdapter<TDate>,
  value: ParsableDate<TDate>,
  {
    minDate,
    maxDate,
    disableFuture,
    shouldDisableDate,
    disablePast,
    ...timeValidationProps
  }: DateValidationProps<TDate> & TimeValidationProps<TDate>,
) {
  const dateValidationResult = validateDate(utils, value, {
    minDate,
    maxDate,
    disableFuture,
    shouldDisableDate,
    disablePast,
  });

  if (dateValidationResult !== null) {
    return dateValidationResult;
  }

  return validateTime(utils, value, timeValidationProps);
}