实现时间格式化:只要将红色部分换成你的时间变量就可以了。
<span><s:property value="%{getText('{0,date,yyyy-MM-dd}',{#s.createTime})}" /></span>