关于date标签的使用
date的属性如下:
format | false | false | String | Date or DateTime format pattern | |
id | false | false | String | Deprecated. Use 'var' instead | |
name | true | false | String | The date value to format | |
nice | false | false | false | Boolean | Whether to print out the date nicely |
timezone | false | false | String | The specific timezone in which to format the date | |
var | false | false | String | Name used to reference the value pushed into the Value Stack |
例子:
<s:date name="person.birthday" format="dd/MM/yyyy" />
<s:date name="person.birthday" format="%{getText('some.i18n.key')}" />
<s:date name="person.birthday" nice="true" />
<s:date name="person.birthday" />