aspose file tools*
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


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 "Date Format in Struts" Watch "Date Format in Struts" New topic
Author

Date Format in Struts

andrea casini
Greenhorn

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: 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Date Format in Struts
 
Similar Threads
Date Formate Problem
related to Date
Code review required for converting dateformat
How to convert String to Date
isValidDateTime