Range in DatePicker and DateTimePicker not handled
Currently min and max dates for date and dateTime picker aren't handled but the picker is completely disabled
[BUGFIX] DatePicker can't handle minDate and maxDate
The Bootstrap DatePicker expects the min and max dates to be formatted
in the format defined in the options. Currently both dates are filled
with an unix timestamp. These can't be converted to a date object (moment
object) and the date picker is completely disabled.
This patch adds the conversion of unix timestamp to the right format
before the Bootstrap DatePicker is initialized.
Reviewed-by: Wouter Wolters <email@example.com>
Tested-by: Wouter Wolters <firstname.lastname@example.org>
Reviewed-by: Markus Klein <email@example.com>
Tested-by: Markus Klein <firstname.lastname@example.org>