File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
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
 
Similar Threads
Date Formatting
Need help with Quartz's Cron Expression
HELP - java.sql.Date
type casting issue
java.sql.Date and DateFormat