Win a copy of Mesos in Action this week in the Cloud/Virtualizaton 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
  • 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
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic