This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "time formatting on JSP " Watch "time formatting on JSP " New topic
Author

time formatting on JSP

Julie Fellenz
Greenhorn

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?
Thanks,
Julie (a real greenhorn)
Rick Hightower
Author
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: http://aspose.com/file-tools
 
subject: time formatting on JSP
 
Similar Threads
Problem in using getParameter()
How to display the time in miliseconds in a proper format in a JSP Page
Jsp to pdf
bean:write format
jspx file not working with foreach