ITeye博客

structs格式化时间

freesky1002 · 2007-11-23 11:19 · STRUCTS2 · Markdown

把

xml 代码

  1. format.date = {0,date,MM/dd/yyyy}
  2. format.time = {0,date,MM/dd/yyyy ha}
  3. format.percent = {0,number,##0.00'%'}
  4. format.currency = {0,number,$##0.00}

加入 ApplicationResources*.properties  中

 
s:text name="format.date" 
    s:param value="person.birthDate"

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。