• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Date Format in Struts

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic