javascript Programming Glossary: iweekday2
Find day difference between two dates (excluding weekend days) http://stackoverflow.com/questions/3464268/find-day-difference-between-two-dates-excluding-weekend-days transposed var iWeekday1 dDate1.getDay day of week var iWeekday2 dDate2.getDay iWeekday1 iWeekday1 0 7 iWeekday1 change Sunday.. iWeekday1 0 7 iWeekday1 change Sunday from 0 to 7 iWeekday2 iWeekday2 0 7 iWeekday2 if iWeekday1 5 iWeekday2 5 iAdjust 1.. 0 7 iWeekday1 change Sunday from 0 to 7 iWeekday2 iWeekday2 0 7 iWeekday2 if iWeekday1 5 iWeekday2 5 iAdjust 1 adjustment..
|