velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathan Bubna" <nbu...@gmail.com>
Subject Re: Formatting a Date
Date Sun, 16 Apr 2006 15:44:56 GMT
you could also use the DateTool that is part of the VelocityTools
project for a little more in-template flexibility of formatting.

On 4/14/06, Malcolm Edgar <malcolm.edgar@gmail.com> wrote:
> 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
>
>

---------------------------------------------------------------------
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