I'm getting two variables From DB Date and time (${COLL.date},${COLL.time}).
The two variables values are like this 20160719 and 1234
I want to format this two variables like this 2016/07/19 and 12:34
In my JSP page, I haded this library
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
And I set tag
<fmt:parseDate pattern="yyyy/MM/dd" value="${COLL.date}" var="parsedDate" />
<fmt:formatDate value="${parsedDate}" pattern="yyyy/MM/dd" var="dateformat"/>
<p>${dateformat}</p>
This is my variable ${COLL.date} (20160719), Which I'm getting from my DB.
When I do like above, I'm getting an ERROR