Need to initialize date object. so it is necessary to initialize n number of times for n number of datepickers. This form uses 4 datepicker. so had to initialize four date objects.
And had to apply datefilter for all the four date objects..