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
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
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
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.
4 matches
Mail list logo