How do i use javascript to return the number of days holidays between two dates excluding holidays?
问题 I have a code that returns the number of days between two dates selected with jquery datapicker. I would like to add a function for holidays that will exclude all holidays in an array; var holidays [25-12-2016,26-12-2016,1-1-2017]; please find code below: <script> <!--Calculate Leave days excluding weekends function calcBusinessDays(start, end) { // This makes no effort to account for holidays // Counts end day, does not count start day // make copies we can normalize without changing passed