Ragu
Ragu

Reputation: 1728

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

Upvotes: 0

Views: 226

Answers (1)

Abhishek Mishra
Abhishek Mishra

Reputation: 340

Use this

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

Upvotes: 1

Related Questions