// Close the configuration panel to refresh the date field preview.
dateField.closeConfigPanel();
// Select a date using the date picker.
DatePicker datePicker = dateField.openDatePicker();
// The current date format doesn't include time information.
Assert.assertFalse(datePicker.hasHourSelector());
datePicker.setDay("22");
Calendar now = Calendar.getInstance();
now.set(Calendar.DAY_OF_MONTH, 22);