title: Set Date Picker time format
body: <p>I have this example of Date Picker. Can you tell me how I can set the date format of the calendar?</p>
  
  <pre><code>import javafx.application.Application;
  import javafx.scene.Scene;
  import javafx.scene.control.DatePicker;
  import javafx.stage.Stage;
  
  import java.time.LocalDate;
  
  public class PickerDemo extends Application {
      @Override public void start(Stage stage) {
          final DatePicker datePicker = new DatePicker(LocalDate.now());
          datePicker.setOnAction(event -&gt; {
              LocalDate date = datePicker.getValue();
              System.out.println("Selected date: " + date);
          });
  
          stage.setScene(
              new Scene(datePicker)
          );
          stage.show();
      }
      public static void main(String[] args) { launch(args); }
  }
  </code></pre>