wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to Read DateTime values from the database
 
Similar Threads
Joda DateTime
how to handle Null values?
finding the closest time in database record
count by current timestamp
how to change the date,Time format after accessing it from the database