velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Mansfield" <JMansfi...@espresso.co.uk>
Subject Date formatting from a string
Date Wed, 20 Jun 2007 17:43:10 GMT
Hi,

I am trying to format a string that contains a date as a number of milliseconds since 1970
(in text format) in my velocity template.

I realise that it should be a long, but in this instance we have to deal with the number being
represented as a string.

Is there a way of converting the string representation into a date using either DateTools
or other Java object methods?

Many thanks

Jason

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message