With the eonasdan-datetimepicker you could update the max and min of a date picker by simply doing this:
.on("dp.change", function (e) {
if (e.date) {
$('#returnDatePicker').data("DateTimePicker").minDate(e.date.add(1, 'days'));
}
});
With angular, I have tried both the jQuery above, which causes all kinds of madness as well as adding a setMin() method to the date picker options object.
Alas, none of those work.
Is this something that can be done?
If so, am I missing something?
With the
eonasdan-datetimepicker
you could update themax
andmin
of a date picker by simply doing this:With angular, I have tried both the jQuery above, which causes all kinds of madness as well as adding a
setMin()
method to the date picker options object.Alas, none of those work.
Is this something that can be done? If so, am I missing something?