code: private static void setTwoWithY2KButtonClicked(ActionEvent e) {
          // Set date picker date.
          LocalDate dateY2K = LocalDate.of(2000, Month.JANUARY, 1);
          datePicker2.setDate(dateY2K);
          // Display message.
          String dateString = datePicker2.getDateStringOrSuppliedString("(null)");
          String message = "The datePicker2 date was set to New Years 2000!\n\n";
          message += ("The datePicker2 date is currently set to: " + dateString + ".");
          panel.messageTextArea.setText(message);
      }
docs: setTwoWithY2KButtonClicked, This sets the date in date picker two, to New Years Day 2000.