Check the capitalization of your date format. It must comply with
java.text.SimpleDateFormat:
http://java.sun.com/j2se/1.5.0/docs/api/java/text/SimpleDateFormat.html

I think you want this:

<binding name="translator" value="translator:date,pattern=yyyy-MM-dd"/>


Bode, Bianca wrote:
> Hi guys,
>
> I've tried everything I could come up with to display my Dates in a
> certain format.
> Unfortunately, none of them are working: what am I doing wrong??
>
> Currently displayed like this: 2006-06-15 09:33:37.0
>
> Already tried:
>
> In .jwc:
> <bean name="dateTranslator"
> class="org.apache.tapestry.form.translator.DateTranslator">
>           <set name="pattern" value="literal:yyyy-mm-dd"/> 
> </bean>
> <binding name="translator" value="bean:dateTranslator"/>
>
> Also tried in .jwc:
> <binding name="translator" value="translator:date, pattern=yyyy-mm-dd"/>
>
> Also tried setting the translator in the template instead of the page.
> None of this seems to work.
>
> I was thinking maybe this doens't work because I'm trying to display
> these Dates insides a Contrib:Table....
> Anyone?
>
> Best regards, Bianca.
>
>
>
>
>
> ---------------------------------------------------------------------
> 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