dangrossman/bootstrap-daterangepicker — pull request #16 by Bulk70 (2012-09-07 10:23:31+00:00)
Title: Added minimum and maximum date selection & some UI updates

Hey there,

I needed to make a few changes to the code for my own needs and I thought you might want them. I added options for a minimum and maximum date so you can stop people selecting dates in the past (or future) for instance. At the same time I also updated the calendar rendering to account for the min/max dates so it gives proper feedback about what dates are available.

I also changed the calendar rendering to update on every date click so the calendars will now feedback instantly if dates become unavailable. Let me know if you spot any problems, I'll gladly fix them!

Example usage:

```
$('#rangedisplay').daterangepicker({
format: 'dd-MM-yyyy',
startDate: '-90 days',
minDate: '-90 days',
maxDate: 'today'
});
```