velocity-user mailing list archives

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

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


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