eternicode/bootstrap-datepicker — pull request #232 by camupod (2012-10-26 17:31:07+00:00)
Title: daysOfWeekDisabled option/method

I had the need to disable Saturdays and Sundays, so I added daysOfWeekDisabled option/method.

### daysOfWeekDisabled

String, Array. Default: '', []

Days of the week that should be disabled. Values are 0 (Sunday) to 6 (Saturday). Multiple values should be comma-separated. Example: disable weekends: `'0,6'` or `[0,6]`. Can be set in HTML data attribute with `data-date-days-of-week-disabled`.

### setDaysOfWeekDisabled

Arguments:

* daysOfWeekDisabled (String|Array)

Sets the days of week that should be disabled.

$('#datepicker').datepicker('setDaysOfWeekDisabled', [0,6]);

Omit daysOfWeekDisabled (or provide an otherwise falsey value) to unset the disabled days.

$('#datepicker').datepicker('setDaysOfWeekDisabled');
$('#datepicker').datepicker('setDaysOfWeekDisabled', null);