I\'m looking at some code that basically does the following:
ResultSet rs = ps.executeQuery(); String myDateStr = rs.getString(\"MY_DATE\"); //field is of ty
Instead of using
String myDateStr = rs.getString("MY_DATE")
you should use
Timestamp timestamp = rs.getTimestamp("MY_DATE");
JDBC / Database will handle the date transformation for you.