title: dateChooser getting value to search between dates
body: <p>How can i get value from 2 JDateChooser formatted yyyy-MM-d  and put it in sql query (String sql="select .... from ... between  date1 and date2") which should search data between those dates and outputted in a JTable.</p>
  
  <p>I used code but no output appeared:</p>
  
  <pre><code>String v1 = gr_date1.getDate().toString();
  String v2 = gr_date2.getDate().toString();
  try {
      sql = "select barcode,itemName,description,supplier,capital,wholesale,srp,minStock,status,dateSaved from item where dateSaved between '"+v1+"' AND '"+v2+"'";
      pst = conn.prepareStatement(sql);
      rs = pst.executeQuery();
      gReport_table.setModel(DbUtils.resultSetToTableModel(rs));
  } catch (Exception e) {
      JOptionPane.showMessageDialog(null, e);
  }
  </code></pre>