posted 17 years ago
Okay now I can see it.. but how do I convert it to a Calendar item?
I want to select an Oracle Date column, and have it end up as a Java Calendar type with both the date and time portion.
Can someone please provide an example of this ?
If I use rs.getTimeStamp, how do I then populate my calendar with this ?
Calendar calEnd = Calendar.getInstance();
calEnd.setTime(rs.getTimeStamp("eff_thru_date"),calEnd);
This has a compile time error on the setTime method telling with incompatible types i.e. getTimeStamp is not of type Long.
If I use calEnd.setTime, this truncates the timeStamp portion.
Please, can someone help. I cannot believe that I could not find an example out there someplace, but I couldn't.