Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

gettint hours, minutes and seconds from Timestamp object

843854Jul 1 2002 — edited Jul 3 2002
hi
i use the Timestamp object to insert the date and time in to oracle from jsp page .
This insert all these accuratly.
When i want to retrive the time i use the date formater etc which displays the time in the formate 21-May-1987 3.09.07 am
Now i want to get the date and hours explicitly .For days i use the Timestamp object with tm.getDate () method wich give the required date but WHEN i use tm.getHours (); then it always give me 0
Please tell me how i get the hours, minutes and seconds in this sanerio
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 31 2002
Added on Jul 1 2002
6 comments
341 views