velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Malcolm Edgar" <malcolm.ed...@gmail.com>
Subject Re: Formatting a Date
Date Fri, 14 Apr 2006 23:52:54 GMT
Add a simple date format object to the Velocity context and use that
to format your object.

$formatter.format($myDate)

regards Malcolm Edgar

On 14 Apr 2006 23:43:15 -0000, yahootintin.18761655@bloglines.com
<yahootintin.18761655@bloglines.com> wrote:
> I have a java.util.Date object in a Velocity template.  How do I format it
> to just display MM-DD-YYY?
>
> Thanks.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Mime
View raw message