title: java.util.Date cannot be cast to java.sql.Date
body: <p>I am trying to insert Date into Database but I am getting error as  java.util.Date cannot be cast to java.sql.Date.
  Please help.</p>
  
  <pre><code>String next_dt = req.getParameter("NextDate");
  DateFormat dtFmt = null;
  dtFmt = new SimpleDateFormat("yyyy-MM-dd");
  dtToday = (Date) dtFmt.parse(next_dt);
  </code></pre>