title: How to convert DatePicker Value to String?
body: <p>I'm trying to convert the</p>
  
  <p><code>datepicker.getvalue();</code></p>
  
  <p><strong>into a String</strong>(or into something else, which I can then use to insert into my mysql database), but I've been having troubles finding information about that!</p>
  
  <p><strong>Have you got any suggestions?</strong>
  Thanks! :)</p>
  
  <p><strong>EDIT:</strong> This solves the problem</p>
  
  <pre><code>String date = datepicker.getValue().format(DateTimeFormatter.ofPattern("yyyy-MM-dd"));
  </code></pre>