I was wondering if someone could help me. Using the Dan Grossman's Bootstrap Date Picker I want to add 30 days onto the selected start date and define that as the maxDate so a user can't select past this date.
I'm really stuck on this and I can't find any docummentation relating to what I want to do. Here is my code;
var min_date = new Date();
var max_date = '05/31/2013';
$('#limited').daterangepicker(
{
minDate: min_date,
maxDate: max_date,
},
function(start, end) {
$('#limited')
.data("showAddEventDialogue_dateRangeStart", start)
.data("showAddEventDialogue_dateRangeEnd", end);
});
Any help or advice would be very much appreciated.
Thanks a million.