Sorry I submitted the incomplete query by mistake. Here's my
question:
I have to do mandatory check for a date field when the user doesn't
enter any date in the datebox input, however I'm always getting the
last set value for the date field instead of null when user doesn't
enter any data.
Kindly
I have to do mandatory check for a date fieldWhen the user doesn't any
date in the datebox input
Code:
final DateBox dateBox = new DateBox();
dateBox.setValue(new Date());
dateBox.setFormat(new
DateBox.DefaultFormat(DateTimeFormat.getFormat("ddMMMyy")));
//capture the change event of date picker