Java ResultSet.getString() for Date field displaying 00:00:00.0
问题 I am using a generic method to loop through and convert a ResultSet to a String array. I am wondering why does the Date column in Oracle db value come print out as 2015-01-09 00:00:00.0 while the date in the database shows 2015-01-09 ? Here is the code, the col type in Oracle is Date while(rs.next()) { String[] arr = new String[colCount]; for(int i = 1; i <= colCount; i++) { arr[i-1] = rs.getString(i); }//end for list.add(arr); }//end while So that is part 1 of the question, part 2 of the