Known Participant
June 8, 2023
Answered
Calculate working days excluding sat and sun - updating script
- June 8, 2023
- 1 reply
- 1024 views
Hey guys!
I have a query. I have 2 dates and a text box calclating working days excluding sat and sun. Everything is working well unless i enter start date as sat or sun, the calculation then starts adding that sat or sun also.
Example: (format: mm/dd/yyyy)
Begin date: 04/09/2023(sunday) - End Date: 04/17/2023(monday) so W.Days should be 6 excluding the start date sunday but unfortunately I'm getting 7 days. Same problem is occuring when i enter start and end date as sat and sun then the entire calculation is messing up.
I'm attaching the file and I'm not good with js, please if anyone can help me with the script
