velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Will Glass-Husain" <wgl...@forio.com>
Subject Re: Display timestamp in VM - Urgent
Date Tue, 20 Jul 2004 16:08:18 GMT
Put a date object in the context

context.put("today",new Date());

Then in VTL say:

$today

WILL

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


> 
> Hi,
> 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.
> 
> Regards!
> 
> 
> ---------------------------------------------------------------------
> 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