velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Kienenberger <mkien...@alaska.net>
Subject Re: Display timestamp in VM - Urgent
Date Tue, 20 Jul 2004 19:22:41 GMT
The Velocity-Tools DateTool can also provide all of this without code 
support.

http://www.jajakarta.org/velocity/tools/velocity-tools-
1.1/docs/generic/DateTool.html

-Mike


Will Glass-Husain <wglass@forio.com> wrote:
> Put a date object in the context
> 
> context.put("today",new Date());
> 
> Then in VTL say:
> 
> $today
> 
> ----- Original Message ----- 
> From: "Saraswati Sivasankar (sasivasa)" <sasivasa@cisco.com>
> To: "'Velocity Users List'" <velocity-user@jakarta.apache.org>
> Sent: Monday, July 19, 2004 9:51 PM
> Subject: Display timestamp in VM - Urgent
> 
> > What is the best way to display timestamp in VTL ?
> > Is there any way other than using the java methods from context?
> > 
> > Any info would help.

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