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

Re: to format a date

2006-12-07 Thread Dariusz Wojtas
I am not sure if I understood you correctly. I am formatting dates using jstl: <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"; prefix="fmt" %> Dariusz Wojtas On 12/7/06, Nabil ALI-MOUSSA <[EMAIL PROTECTED]> wrote: Hi, I have data dates that I would like to transform into format dates in

to format a date

2006-12-07 Thread Nabil ALI-MOUSSA
Hi, I have data dates that I would like to transform into format dates in my page JSP . there is my code JSP : Date de naissance value="dateNaissancePorteur" /> somebody can help me, please, thank you. nam.