title: getting value from jDateChooser and saving to MS sql DB
body: <p>I have two jDateChooser on my dialog , I want to save to MS-SQL DB having issue with that data types. Any idea how to fix this issue ! I can only do this when i convert data type to nvarchar in DB and convert the value to string which returns from jDateChooser.</p>
  
  <p><img src="https://i.stack.imgur.com/ez9gd.png" alt="enter image description here"></p>
  
  <p>//  I can save in this way but I it doesn't use jDateChooser;</p>
  
  <pre><code>   java.util.Date utilDate = new java.util.Date();
     java.sql.Date sqldate = new java.sql.Date(utilDate.getTime());
  </code></pre>
  
  <p>// I cant save the date with jDateChooser </p>
  
  <pre><code>    java.sql.Date sqldate = new java.sql.Date(jDateChooser3.getDate());
  </code></pre>
  
  <p>// Only Way I found </p>
  
  <pre><code>  SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");
  
    String sd = dateFormat.format(jDateChooser3.getDate());
  
    obj.setStartDate(sd);
  </code></pre>
  
  <p>//      </p>