Vinit,

Place the following at the top of your JSP:

<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"; prefix="fmt" %>

Then, use the following to format your date:

<fmt:formatDate value="${myDateValue}" dateStyle="myDateStyleString" />

The dateStyle attribute uses the same semantics as the SimpleDateFormat. You
can alternatively use the pattern attribute to specify a custom date pattern
if you prefer.

HTH,
-Rod

-----Original Message-----
From: Vinit N [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 13, 2007 15:42
To: [EMAIL PROTECTED]
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#a9985
370
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