File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes time formatting on JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "time formatting on JSP " Watch "time formatting on JSP " New topic

time formatting on JSP

Julie Fellenz

Joined: Jan 28, 2003
Posts: 2
In a data bean, I'm getting a string which contains the time a record was inserted into our Oracle database, withn the format "hh:mm:ss". I want the value to display in the "h:mm a" format on my JSP. What can I do?
Julie (a real greenhorn)
Rick Hightower
Ranch Hand

Joined: Feb 20, 2002
Posts: 350
look at java.text.SimpleDateFormat (API docs)

Rick Hightower is CTO of Mammatus which focuses on Cloud Computing, EC2, etc. Rick is invovled in Java CDI and Java EE as well. linkedin,twitter,blog
I agree. Here's the link:
subject: time formatting on JSP
It's not a secret anymore!