aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
How to display the time in miliseconds in a proper format in a JSP Page
jspx file not working with foreach
Problem in using getParameter()
Jsp to pdf
bean:write format