This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Date Format in Struts

 
andrea casini
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello to everyone.

I'm having a very annoying issue in displayng a date through a jsp.
I have a class like this, mapped in a database:


I would like to display the date in this format "dd-mm-yyyy hh:MM" and I don't know how. By now it just print a date in this format: "yyyy-mm-dd hh:MM:ss" which is the default setting.

I found this in google: http://www.roseindia.net/struts/struts2/date/struts-2-date-format.shtml
But this use Struts 2 and I'm using struts 1.3.8. Is there a way to make this work?

Thanks in advance and sorry for english.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic