DatePicker is a highly configurable widget that adds datepicker functionality to the application. For instance, you can customize the date format, restrict the selectable date ranges, add customized calender and provide date reference as per your requirement.

The simple way to add DatePicker widget to the application is as follows

The whole list of configuration parameters is available in DatePickerCfg bean.

For Instance,you can also add a customized calender to select the date.

Output of DatePicker with reference

Enter date in the first date picker and the successive datepickers takes the previously entered date as the reference date when the user input is +/-N. If not date is specified then current date will be taken into account.