This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Sandeep Ghosh
Ranch Hand
Posts: 145
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 145
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic