Skip to Main Content

Java Programming

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!

How to change the date format in the jsp coming from database.

807588Feb 5 2009 — edited Feb 6 2009
hi,

I have retrieved the data from the backend(oracle), to my jsp form page. Initially, the database stores the date as "*2/3/2009 12:39:58 PM*". but when it is retrieving to jsp, it is displaying in the format "*2009-02-03 12:39:58.0*". But I want to retrieve my report with the date format as it is in the database. I have seen your suggestion to be as SimpleDateFormat class usage. pl suggest me how can I use the SimpleDateFormat class in my jsp.

hoping to hear from you soon...
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 6 2009
Added on Feb 5 2009
12 comments
4,679 views