You do not need <c:out> , and the tag is actually called <fmt:formatDate> (note the uppercase D ).
<fmt:formatDate value="${datevar}" pattern="MM/yyyy" />
If you really want to save it in some variable to redisplay later in <c:out> , use the var attribute.
<fmt:formatDate value="${datevar}" pattern="MM/yyyy" var="newdatevar" /> ... <c:out value="${newdatevar}" />
Balusc
source share