'How to disable particular days in date picker using angular, I used bsDatepicker?

I have a working angular project and I used bsDatepicker date picker using by text type input, I need to disable Saturday and Sunday in the date picker.

Is possible to disable particular days?

            <input                  
              type="text"
              class="form-control"
              #dp="bsDatepicker"
              bsDatepicker
              formControlName="delivery_date"
              placeholder="DD/MM/YYYY"                 
              [minDate]="cartItems.minDeliveryDate"
              [isOpen]="isCalendarOpen"
              [bsConfig]="bsConfig"
            />

I need this kind of output

enter image description here



Solution 1:[1]

Use this

bsDaterangepicker [daysDisabled]="[6,0]"

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Abhishek Mishra