I've been using PreparedStatements throughout my entire database where you can use setDate(index, data), however would it work to use a Date object like this?
"SELECT * FROM table WHERE date BETWEEN " + date + " AND " + otherDate
Are there any online tools that I can use to test this?