i.e. this code
startDate = new Date(timestampValue.getTime));
gives me :
2012-16-02 05:16:17
java.sql.ResultSet rs;
//fill rs somehow
java.sql.Timestamp timestamp = rs.getTimestamp(1); //get first column
long milliseconds = timestamp.getTime() + (timestamp.getNanos() / 1000000);
java.util.Date date = return new java.util.Date(milliseconds);
The fancy new Java 8 way is Date.from(timestamp.toInstant())
. See my similar answer elsewhere.