Home > Back-end >  How to disable particular days in date picker using angular, I used bsDatepicker?
How to disable particular days in date picker using angular, I used bsDatepicker?

Time:05-04

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"
              
              #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

CodePudding user response:

Use this

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