You can use the format and parse options of jstl/fmt e.g.

<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt"; %>
<fmt:formatDate value="${myDate}" pattern="YYYY-MM-DD HH:MM" var="formatted" />
<fmt:parseDate value="${formatted}" type="both" timeStyle="full"
                timeZone="GMT" var="parsed"/>
 <c:out value="${parsed}"/> (parsed in "GMT")<br>

M-

This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

----- Original Message ----- From: "Vinit N" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 13, 2007 3:42 PM
Subject: How to format util date with JSTL



How to format util date value with "YYYY-MM-DD HH:MM GMT" this format using
JSTL 1.0

Thanks,

Vinit
--
View this message in context: http://www.nabble.com/How-to-format-util-date-with-JSTL-tf3573559.html#a9985370
Sent from the Struts - User mailing list archive at Nabble.com.


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




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

Reply via email to