Days between dates
 Hi, I have got stuck with calculating working days between dates within a for loop  var endDay = @All of From - To[i].getDay(); The assignment above returns an undefined result instead of a number from 0-6. Any suggestions welcome! Thanks Martin

  • Seem to have resolved by making the following assignment:  So no help needed. date1 = new Date(@All of From - To[i]);date2 = new Date(@All of End date leave[i]); var startDay = date1.getDay();var endDay = date2.getDay();
This question is closed.