Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想要一个包含上述指定格式的当前日期的 var,请使用亲切的帮助。
从以前的问题中找到解决方案,我也会避免使用
<fmt:formatDate value="${currentDate}" pattern="MMM-yy" var="currentDateAsString"/>
请参阅http://docs.oracle.com/javaee/5/jstl/1.1/docs/tlddocs/fmt/formatDate.html。