if u got a form ( and any data) of type Date( java.util) then u can use:

1. <bean:write name="myForm" property="dateCreation" format="dd/MM/yyyy"/>

2. i guess it works as well with <html:text ..>

the solution 1 is working , it's extracted from one jsp i made 1 week ago :)

for the validation, well it should be in validation.xml (or u can code the
java script)


good luck

2007/2/25, Wesslan <[EMAIL PROTECTED]>:

I really like YYYY-MM-DD because that's the way we always write dates in
Sweden... :)

-----Original Message-----
From: Stefan [mailto:[EMAIL PROTECTED]
Sent: den 24 februari 2007 22:40
To: Struts Users Mailing List
Subject: Re: [S2] doubt working with dates in brazilian format
(dd/MM/yyyy)

Daniel Amadei schrieb:
> Hi All,
>
> I'm working with dates but I'm not able to convert dates to be
> displayed automatically using the brazilian format (e. g. dd/MM/yyyy).
> Also I'd like to know how to validate my dates using this format and
> not the standard.
>
> If somebody could point me to the docs where I can find some info
> about those 2 items it would be great!
>
> BTW: I`m not using the datetimepicker.
>
> Thanks,
> Daniel
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
Hi Daniel,

not exactly what you asked. Just as an idea/opinion about international
date
formats:
http://www.w3.org/QA/Tips/iso-date

Regards
Stefan

--

Stefan Riegel
TELIG GmbH



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to