SmartGWT DateTimeItem: accept 12 hour format

╄→尐↘猪︶ㄣ 提交于 2019-12-25 01:13:22

问题


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

回答1:


DateTimeItem.setTimeFormatter(TimeDisplayFormat.TOPADDEDTIME);

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



来源:https://stackoverflow.com/questions/10177171/smartgwt-datetimeitem-accept-12-hour-format

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!