This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
subject: time formatting on JSP
Similar Threads
Jsp to pdf
bean:write format
jspx file not working with foreach
Problem in using getParameter()
How to display the time in miliseconds in a proper format in a JSP Page