title: JTable filter using two (2) JDateChooser
body: <p>I have 2 jdatechooser, one is datefrom and the other one is dateto. I want to filter my jTable data within the range of those two jdatechooser. My problem is whenever I try to filter the table (with dates within the range of my jdatechoosers), my table becomes empty.</p>
  
  <pre><code>SimpleDateFormat sdf = new SimpleDateFormat("MMM d, yyyy");
  
          String from = (String) sdf.format(txt_datefrom.getDate());
          String to = (String) sdf.format(txt_dateto.getDate());
  
  try {
                  String sql = "select reference, name, date, time, totalAmount, "
                          + "discount, status from receipts where date "
                          + "between '" + from + "' and '" + to + "' ";
                  pst = conn.prepareStatement(sql);
                  rs = pst.executeQuery();
                  table_audit.setModel(DbUtils.resultSetToTableModel(rs));
                  total();
              } catch (Exception e) {
  
              }
  </code></pre>