fix bootstrap.datepicker type

Param `startDate` and `endDate` are not only Date type.
#1841