+ 1
Date options instead of type=date
Hello, I need your help. Does anyone know any datepicker, may be flatpickr: I need help on the following: I have a form made with boostrap but the problem is the date field, how would you carry it out, any idea the requirements are as follows: Holidays, and weekends to be disabled. That it is in Spanish language
1 Answer
+ 1
You can use js Date, to get today date (if you need to show are today some weekend or holiday)
Than you can check if this day of the week is saturday or sunday.
But for holidays,you probably need to add manualy each day and check if today day is that. (Maybe there is some API for this)
This can get you name of day in week
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat