* Get the times tamp as a Java Date. * Some precision is lost since the Date class only supports millisecond resolution. * @return The time stamp as a Date. public Date getDate() { return new Date( ...
We discovered a wrong result returned by the equality operator when comparing a date and a timestamp when the date operand is explicitly casted, but not the timestamp: import java.sql.Connection; ...