On Wed, 2003-06-25 at 09:47, Nielsen, Jim wrote:
> Hi,
> 
> Is there a simple way to format a date property inside an iterate loop? The
> property is a long value. I want to have the display the date in a localize
> format.
> 
> Not having much luck searching for examples.

You could see if the JSTL fmt tag will format the long into the correct
date. I know it works great for formating Dates into nice String
representations. Not sure if it works for longs though. If it doesn't,
why not just store an extra field in your bean as a java.util.Date
(getLastModifiedAsDate( returns the getLastModifiedTime from long to
Date ).

Then just format that how you want.

-- 
Rick

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to