public boolean isDateTimeAllowed(LocalDateTime value){
  LocalDate datePortion=(value == null) ? null : value.toLocalDate();
  LocalTime timePortion=(value == null) ? null : value.toLocalTime();
  boolean isDateAllowed=datePicker.isDateAllowed(datePortion);
  boolean isTimeAllowed=timePicker.isTimeAllowed(timePortion);
  return (isDateAllowed && isTimeAllowed);
}

public boolean isDateTimeAllowed ( LocalDateTime value ) { LocalDate datePortion = ( value == null ) ? null : value . toLocalDate ( ) ; LocalTime timePortion = ( value == null ) ? null : value . toLocalTime ( ) ; boolean isDateAllowed = datePicker . isDateAllowed ( datePortion ) ; boolean isTimeAllowed = timePicker . isTimeAllowed ( timePortion ) ; return ( isDateAllowed && isTimeAllowed ) ; }
isdatetimeallowed , this checks to see if the specified value is allowed by any currently set veto policies and " allowemptyvalues " settings of both the datepicker and timepicker components . if the specified value would be allowed by both components , then this returns true . if the specified value would not be allowed by either or both components , then this returns false . for additional details , see : datepicker . isdateallowed ( ) and timepicker . istimeallowed ( ) .
