public void setDateTimePermissive ( LocalDateTime optionalDateTime ) { if ( optionalDateTime == null ) { datePicker . setDate ( null ) ; timePicker . setTime ( null ) ; return ; } datePicker . setDate ( optionalDateTime . toLocalDate ( ) ) ; timePicker . setTime ( optionalDateTime . toLocalTime ( ) ) ; }
setDateTimePermissive This uses the supplied LocalDateTime to set the value of the DatePicker and the TimePicker . Values that are set from this function are processed through the same validation procedures as values that are typed by the user .