Javafx Datepicker validation
问题 we tried to validate a javafx datepicker. So we use: if (fromDatePicker.getValue() == null) { sb.append("No valid from date!\n"); } else { System.out.println(fromDatePicker.getValue().toString()); if (!DateUtil .validEnglishDate(fromDatePicker.getValue().toString())) { sb.append("No valid from date. Use the format yyyy-MM-dd.\n"); } } But at the moment it's impossible to get an invalid Date with the datepicker, because all invalid date's are changed to the start value. So we asked us is it