禁用GWT DateBox中的未来日期选择

时间:2015-01-22 07:42:31

标签: gwt datebox

我正在使用GWT DateBox小部件。我想知道如何在GWT DateBox中禁用用户的未来日期选择? 请给我答案..

1 个答案:

答案 0 :(得分:0)

DateBox dateBox=new DateBox();
DateTimeFormat simple_date_frmt= DateTimeFormat.getFormat("dd-MM-yyyy hh:mm");
String date=simple_date_fmt.format(new Date());
dateBox.setEndDate(date);
相关问题