File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes BEA/Weblogic and the fly likes resultset getDate() not retrieving time Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "resultset getDate() not retrieving time" Watch "resultset getDate() not retrieving time" New topic

resultset getDate() not retrieving time

praveenreddy dinnapaty

Joined: Sep 18, 2007
Posts: 6
I am using getDate() of ResultSet in my program and I am not able to retrieve the time portion of the date . I have 5/28/2008 5:51:23 PM in my DB and when I use resultSet.getDate() I am getting only 5/28/2008.\

please help me
Marcos Maia
Ranch Hand

Joined: Jan 06, 2001
Posts: 977
take a look at javadocs!!!

try using resultset.getTimestamp()

I agree. Here's the link:
subject: resultset getDate() not retrieving time
It's not a secret anymore!