Did you mean to store the formatDate
result
<fmt:formatDate value="${now}" pattern="MM.dd.yyyy" var="formatted" />
and then re-use it? Like so
<spring:url value="/calendar?day=${formatted}" var="calendar_manageUrl"></spring:url>
<fmt:formatDate>
doesn't do anything to the Date
object. A Date
doesn't have a format. Printing it gives it a format. Formatting it gives it a format. You need to store and re-use the result of that formatting.