Try the Output component, eg.
<t:output value="lastLoginDate" format="dateViewFormat"/>
with some extra java for the format:
private DateFormat _dateViewFormat = new SimpleDateFormat("dd/MM/
yyyy");
public DateFormat getDateViewFormat() {
return _dateViewFormat;
}
Cheers,
Geoff
On 13/12/2007, at 7:38 PM, Dapeng 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]