I am struggling with the below problem and hope you can help me.
I would like to pass from and to dates to JQuery datepicker. User is then only allowed to select a date between those two dates using datepicker.
In other words, all dates less than the from date should be disabled and all dates greater than to date should be disabled.
Given: the date range cannot be more than two months
Pass Aug 8 - Aug 23, 2015 to datepicker
Display datepicker for august 2015 and gray-out dates less than Aug 8 and date greater than Aug 23
Pass Sep 27 - Oct 10, 2015 to datepicker
Display datepicker for Sep and Oct 2015. Gray-out dates less than Sep 27 and dates greater than Oct 10