jstl标签 fmt:formatDate 设置当前时间显示星期几

                          jstl标签 fmt:formatDate 设置当前时间显示星期几

一、依赖 jar 包

1、 jstl-1.2.jar

二、 jsp页面 示例如下:

1、示例代码如下:

 <fmt:formatDate value="<%= new java.util.Date() %>" type="both" dateStyle="full"/>

2、 效果如下: 2018年7月30日 星期一 11:12:52

 

三、要了解更多

1、<fmt:formatDate> 标签更多资料: http://www.runoob.com/jsp/jstl-format-formatdate-tag.html

猜你喜欢

转载自blog.csdn.net/HaHa_Sir/article/details/81281880