#The power of Moment.js
Use case:
- start date: current day + 2 days
- end date: current day + 7 days
- default date: current day + 2 days
- disabled dates: Sundays within the range of start date to end date
#The power of Moment.js
Use case:
$form.find('#deliveryDate').datetimepicker($.extend(amsel.base.getDatetimepickerDefaults(), { | |
startDate: moment().add('days', 2), | |
endDate: moment().add('days', 7), | |
defaultDate: moment().add('days', 2), | |
disabledDates: [moment().day(7)], | |
})).on('change.dp', function() { | |
$(this).trigger('blur'); | |
}); |