使用<s:date>标签,有一个format属性,就是用来输出指定时间格式的 例如:
<s:date name="publishTime" format="yyyy-MM-dd HH:mm:ss" />
<s:date name="birthday" format="yyyy-MM-dd" />
yyyy-MM-dd年月日 HH:mm:ss时分秒
<s:date name="BIRTHDAY" format="yyyy-MM-dd" />
其中BIRTHDAY就为后台传递过来的值