Hello,
Especially as I know, such detail is specific to the implementation of the driver / database. In my opinion you have no control over where possible. Oracle is the driver who chooses how he stores a java.util.Date to its tables.
To specify the hour / minute / second, it must act on the java.util.Date object that is used with Calendar:
Code:
Date mydate = ...;
Calendar testcal = Calendar.getInstance();
testcal.setTime(mydate);
testcal.set(Calendar.HOUR, 0);
testcal.set(Calendar.MINUTE, 0);
testcal.set(Calendar.SECOND, 0);
testcal.set(Calendar.Millisecond, 0);
Date newDate = testcal.getTime();
Hope this will help you
Bookmarks