Core/Html/Controls/DateTimePicker.php
public function setDisabledDates($dates)
    {
        if (!is_array($dates)) {
            $dates = (array) $dates;
        }

        $this->option_disabled_dates = $dates;
        $this->set_options['disabled_dates'] = 'disabledDates';

        return $this;
    }
public function setDisabledDates($dates)
    {
        if (!is_array($dates)) {
            $dates = (array) $dates;
        }

        $this->option_disabled_dates = $dates;
        $this->set_options['disabled_dates'] = 'disabledDates';

        return $this;
    }
public function setDisabledDates ( $ dates ) { if ( ! is_array ( $ dates ) ) { $ dates = ( array ) $ dates ; } $ this -> option_disabled_dates = $ dates ; $ this -> set_options [ 'disabled_dates' ] = 'disabledDates' ; return $ this ; }
Sets disabled dates.
Accepts a single date or a list of dates in an array.

@param string|array $dates

@return \Core\Html\Controls\DateTimePicker
Sets disabled dates . Accepts a single date or a list of dates in an array .