title: jDateChooser1 needs to be converted to varchar to be stored in database how can I do this?
body: <p>Currently on my jframe I have jdatechooser and am using this code:</p>
  
  <pre><code>java.util.Date utilDate = (java.util.Date) jDateChooser1.getDate();
  java.sql.Date sqlDate = new java.sql.Date(utilDate.getTime());
  prepStat.setDate(6, sqlDate);
  </code></pre>
  
  <p>but when I click add on the jframe this is the only data that doesn't get entered at all</p>
  
  <p>The variable is called Target_Date and is set to varchar if that helps. </p>