SmartGWT DateTimeItem: accept 12 hour format

2019-08-18 17:53发布

问题:

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 !



标签: smartgwt