Tuesday, 3 September 2013

JSTL fmt:parsedate of pubDate attribute in RSS 2.0

JSTL fmt:parsedate of pubDate attribute in RSS 2.0

I need to parse this String in order to convert it to Date:
Tue, 3 Sep 2013 19:47:52 +0200
I'm using
<fmt:parseDate var="parsedDate" value="${pubDate}" type="both"/>
but the result is:
org.apache.jasper.JasperException: javax.servlet.ServletException:
javax.servlet.jsp.JspException: In &lt;parseDate&gt;,
value attribute can not be parsed: "Tue, 3 Sep 2013 19:04:18 +0200"
What's wrong with this?

No comments:

Post a Comment