You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Liu Dapeng <ve...@gmail.com> on 2007/12/13 07:17:37 UTC
[T5] How to format java.lang.Date when using expansion
hi guys
i am using expansion to output a Date object like
Your last login: ${lastLoginDate}
but how to format it ?? currently it gives the whole string as Wed
Dec 12 18:36:38 SGT 2007
how to change it to like dd/mm/yyyy???
regards
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [T5] How to format java.lang.Date when using expansion
Posted by Davor Hrg <hr...@gmail.com>.
you could add you own binding prefix
${date:lastLoginDate}
or
${date:lastLoginDate}
http://wiki.apache.org/tapestry/Tapestry5HowToAddBindingPrefix
Davor Hrg
On Dec 13, 2007 7:17 AM, Liu Dapeng <ve...@gmail.com> wrote:
> hi guys
>
> i am using expansion to output a Date object like
>
>
> Your last login: ${lastLoginDate}
>
>
>
> but how to format it ?? currently it gives the whole string as Wed
> Dec 12 18:36:38 SGT 2007
>
> how to change it to like dd/mm/yyyy???
>
>
>
>
>
>
>
>
>
>
>
> regards
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org