This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

time formatting on JSP

 
Julie Fellenz
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 350
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
look at java.text.SimpleDateFormat (API docs)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic