在jsp页面首部添加如下代码:

<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt"%>

fmt标签用于格式化数据,如下列代码通过fmt标签格式化日期的数据

<fmt:formatDate value="${item.date}" pattern="yyyy-MM-dd"></fmt:formatDate>

相关文章:

  • 2021-06-06
  • 2021-11-23
  • 2022-12-23
  • 2022-03-05
  • 2021-06-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-06
  • 2021-09-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-14
  • 2021-05-19
  • 2021-06-15
相关资源
相似解决方案