对Spring from中日期显示格式化问题

<form:form method="post" commandName="studioSection" action="${ctx}/studio/scheclass/modSection"
id="studioSectionModForm">


<form:hidden path="sectionId" />


  • <form:input path="beginTime" onblur="IsTime()" />


  • <form:input path="endTime" onblur="IsTime()" />







</form:form>

想在input中让日期格式显示为HH:ss  但是各种百度没有找到答案  最后Google之 http://stackoverflow.com/questions/11736150/how-to-make-fmtformatdate-work-for-forminput

完美的解决了我的问题
贴出代码:
<fmt:formatDate value="${studioSection.beginTime}" pattern="HH:mm" type="date" var="theBeginTime"/>


  • <form:input path="beginTime" onblur="IsTime()" value="theBeginTime" />
  • posted @ 2016-03-23 19:13  FEI_>.<_JI  阅读(155)  评论(0编辑  收藏  举报