SmartGWT DateTimeItem: accept 12 hour format

2019-08-18 17:25发布

I am using the SmartGWT DateTimeItem component. By default, the component accepts time in the 24 hour format (ie 11:15, 15:30). I would like to know how I can configure the component to accept the time in 12 hour format (ie 11:15 am, 3:30pm)?

Technical Specs:

  • Smart GWT v3.0
  • Firefox 11
  • IE 8

标签: smartgwt
1条回答
做自己的国王
2楼-- · 2019-08-18 18:05
DateTimeItem.setTimeFormatter(TimeDisplayFormat.TOPADDEDTIME);

Haven't tested but it looks like what you want !

查看更多
登录 后发表回答