angular-material-datetimepicker icon indicating copy to clipboard operation
angular-material-datetimepicker copied to clipboard

disable weekends from the calendar

Open sachilaRanawaka opened this issue 7 years ago • 2 comments

how can I disable certain days in the calendar? As an example, i want to disable all the weekends. here is my code

<input time="false" date="true" mdc-datetime-picker type="text" id="date" placeholder="Date" ng-model="date" min-date="minDate" max-date="maxDate" disable-dates="dates">

sachilaRanawaka avatar Apr 06 '17 07:04 sachilaRanawaka

Current implementation is for specific date object in an array:

 $scope.dates = [new Date('2016-11-14T00:00:00'), new Date('2016-11-15T00:00:00'),
        new Date('2016-11-30T00:00:00'), new Date('2016-12-12T00:00:00'), new Date('2016-12-13T00:00:00'),
        new Date('2016-12-31T00:00:00')];

hexadecy avatar Apr 07 '17 04:04 hexadecy

Now you can with this release: https://github.com/beenote/angular-material-datetimepicker/releases/tag/v1.7.2

hexadecy avatar Jul 31 '17 03:07 hexadecy