permaculture playing cards
The moose likes Struts and the fly likes Date Format in Struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Date Format in Struts" Watch "Date Format in Struts" New topic

Date Format in Struts

andrea casini

Joined: Jul 27, 2010
Posts: 13
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:
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.
I agree. Here's the link:
subject: Date Format in Struts
It's not a secret anymore!