I am setting values to send queries in my DBUtil file, however two values: start, end - are Date type value in the HTML5 form and in the MySQL DB. How do I handle them in my DBUtil file while setting?
myStmt.setInt(1, theBook.getNumber());
myStmt.setInt(2, theBook.getPhone());
myStmt.setDate(3, theBook.getStart());
myStmt.setDate(4, theBook.getEnd());
myStmt.setString(5, theBook.getName());
in my Java class, DBUtil and Servlet I imported java.util.Date. If I use (as in exaomle above) myStmt.setDate(X, value) I've gopt an error: java.util.date cannot be converted into java.sql.date