ITeye博客

Gwt Client DateFormat

bean-woo · 2012-08-10 10:21 · GWT · Web前端 · Markdown

1. 继承模块

在XX.gwt.xml中引入:

 

    <inherits name="com.google.gwt.i18n.I18N"/>  

 

2. 在代码中使用:

import com.google.gwt.i18n.client.DateTimeFormat;   

 

DateTimeFormat format = DateTimeFormat.getFormat("yyyy-MM-dd");

评论(0)

暂无评论。

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