This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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
Author

resultset getDate() not retrieving time

praveenreddy dinnapaty
Greenhorn

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()

regards.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: resultset getDate() not retrieving time
 
It's not a secret anymore!