fix bootstrap.datepicker type

Param `startDate` and `endDate` are not only Date type.
Merge pull request #1860 from fancyoung/master

fix bootstrap.datepicker type