Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Using parseDate and formateDate with milliseconds in JSTL

843838Mar 30 2006 — edited Mar 30 2006
I have a field that is a millisecond date (type long) and I'd like to use the parseDate and formatDate tags to display the date. I've tried every variation I can think of, but this is essentially what I'm trying to do:
<fmt:parseDate value="${e.eventDate}" pattern="S" var="edate" />
<fmt:formatDate value="${edate}" type="both" pattern="dd MMMM yyyy HH:mm" />
I can print out the ${e.eventDate} and verify it is valid. In my stack traces it says something about how it cannot parse the input, which is the millisecond date I'm interested in.

Anyone have any insight in how to do this seemingly common task? I've tried everything from changing the pattern(s) to adding locales, etc .. and nothing seems to work.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 27 2006
Added on Mar 30 2006
4 comments
611 views