This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes JDBC and the fly likes How to Read DateTime values from the database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "How to Read DateTime values from the database" Watch "How to Read DateTime values from the database" New topic
Author

How to Read DateTime values from the database

Garry Kalra
Ranch Hand

Joined: May 25, 2001
Posts: 111
Please tell me how to read datetime values from the database. I understand there is a function called getDate and another called getTime, but what if i want a combination of both, so that i can compare two datetime values in java and not on the database server.
Thanks
Gaurav Kalra
Daniel Dunleavy
Ranch Hand

Joined: Mar 13, 2001
Posts: 276
getTimestamp
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to Read DateTime values from the database