Timesteamp extends java.util.Date class, it stores the fractional part of the time within itself instead of within the Date superclass. If you need the partial seconds, you have to add them back in.
Date date = new Date(ts.getTime() + (ts.getNanos() / 1000000 ));
0 Responses to Convert java.sql.Timestamp to java.util.Date
0 Responses to Convert java.sql.Timestamp to java.util.Date
Something to say?