aspose file tools*
The moose likes JDBC and the fly likes How to get hour min AM/PM from java.sql.Date Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "How to get hour min AM/PM from java.sql.Date" Watch "How to get hour min AM/PM from java.sql.Date" New topic
Author

How to get hour min AM/PM from java.sql.Date

Sandeep Ghosh
Ranch Hand

Joined: Jan 23, 2002
Posts: 145
Hi Friends,
I have fetching records from date/time field which have hour and min data.Problem I am facing is that I cannot access those data as java.sql.Date does not have method like getHour().
I am converting into util.date then also it is not showing.
Does anybody have any suggestion regarding this problem.
Thanks in adv.
Sonu
Sandeep Ghosh
Ranch Hand

Joined: Jan 23, 2002
Posts: 145
Hi Friends,
I just got the answer after little search of API.I just have to use getTimeStamp().
Thanks anyway.
Sonu
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to get hour min AM/PM from java.sql.Date