Re: Using date to format a date

2009-10-19 Thread Greg Lindholm
What I do is add a method for formatting dates (formatDateTime()) to the action base class. The method can then use the users Locale and TimeZone to construct a DateFormat object. public String formatDateTime(Date timestamp) { return getDateFormat().format(timestamp); } In th

Using date to format a date

2009-10-15 Thread Christian Bockermann
Hi list! I want to display a date in a user-specified manner (struts2 web-app) Thus, there exists a form where users can specify date-format strings, I validate them and on another page, I want to use the date-tag to display the date in the choosen format. So I have a session-property "date