天天看点

<fmt:formatDate />标签的输出格式

jsp加载页面显示日期格式:

<fmt:formatDate value="${m.createTime}" type="both" dateStyle="long" />

---->2016年12月1日 11:04:24

jsp编辑页面显示日期格式:yyyy-MM-dd

<input type="text" id="endTime"  class="easyui-datebox"  name="endTime" value="<fmt:formatDate value="${now}" type="both" dateStyle="long" pattern="yyyy-MM-dd" />"/>

本文转自 沉淀人生 51CTO博客,原文链接:http://blog.51cto.com/825272560/1878457