Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) 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
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!