Added support for datepicker.