struts2 s:property标签获取日期

struts2前端传到对象未s 属性为lastoperatingdate 通过

 <s:property value="s.lastoperatingdate" />

没有格式化日期的显示为:19-11-11 0:00:00.000

通过

<s:date name="s.lastoperatingdate" format="yyyy-MM-dd" />

格式化日期的显示为:2019-11-11

猜你喜欢

转载自www.cnblogs.com/shifu8005/p/11901693.html
今日推荐