views:

175

answers:

1

something like?

<fmt:formatDate value='${event.starttime}' type='both'/>
+3  A: 

It is not possible AFAIK. You can use the pattern attribute:

<fmt:formatDate pattern="yyyy-MM-dd'T'HH:mm:ssz" value="${event.starttime}" />

But there is not a pattern to generate ISO8601 without post-processing. You have to cook your date in the server side and show it in your view.

You might find Joda-Time library useful, as well as some blog posts like:

Guido
This is unfortunately wrong, ISO 8601 doesn't have the concept of timezones, just an offset of UTC or 'Z' to indicate UTC, I would go for the advise of using Joda-Time, they even have a tagslib
Amr Mostafa