title: Localdate.format, format is not applied
body: <p>I have a DatePicker in my FXML and I need the Date to insert it into my SQL-Database. I want to format my Date but it doesn't work.</p>
  
  <pre><code>    LocalDate localDate = purchased_at.getValue();
      localDate.format(DateTimeFormatter.ofPattern("dd.mm.yyyy"));
  </code></pre>
  
  <p>This is the Error I get.</p>
  
  <pre><code>Caused by: java.time.temporal.UnsupportedTemporalTypeException: Unsupported field: MinuteOfHour
  </code></pre>
  
  <p>I'm still kind of a beginner. I had Java for the past 3 or 4 months now. I'm trying my best to improve.</p>