Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

getDate of resultset Ignoring the Time (hors min secs) component in DB2

843859Jan 24 2007 — edited Jan 24 2007
Hello I have a DB2 in which has the date in the format 2007-01-24 09:25:21.680000.

I am trying to retrevie it using the

#####################################
java.sql.Date start =rs.getDate("Give_time");
System.out.println("This is the Start Time Stamp" + startBuild.getTime());
############################################
Gives me the Timestamp of the "2007-01-24" completely ignoring the time "09:25:21" which is more important to me in this case.

How do I retreve the time in the date ?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 21 2007
Added on Jan 24 2007
4 comments
160 views