标签: java vaadin datefield
DateField fromDate = new DateField(); fromDate.setCaption("From Date:"); fromDate.setDateFormat("dd-MM-yyyy");
我怎样才能获得日期值?
答案 0 :(得分:0)
使用getValue:
getValue
Date fromDateValue = (Date) fromDate.getValue();