Bootstrap daterangepicker datelimit

0

Good morning classmates,

I'm having problems with the daterangepicker , I want to use it to simulate vacation requests. Within the daterangepicker I am already disabled on weekends. For example, a user has 10 days of vacation and wants to request them, we have the DATELIMIT setting to define how many days you can select (10).

When I define the number 10 within DATELIMIT 11 days are enabled, because it counts the current day as additional, and should not have weekends, that is if I have 5 days left and I want to order a Thursday, Friday, Monday, Tuesday and Wednesday, he does not leave me because he counts the weekend even if he is disabled and he only lets me choose until Monday.

dateLimit: {
   "days": 10
}, 

Do you know how I can do so that the datelimit does not count weekends?

Thank you very much from now.

    
asked by Octavio Chavez 25.05.2018 в 23:49
source

0 answers