Is there a way any of you know to tweak the DaysInMonth() function to give the number of workdays in that month? In other words, not count the weekends. Kevin
slanek@ssd.fsi.com
I remember a post on March 8 where I posted some code to do something similar. This should give a reasonable accurate number for you. It starts with the day after sDate and counts days up to and including eDate.
That's correct. I think the only thing to watch out for is how it treats the starting and ending days. Currently, the starting date is not counted and the ending date is counted. You can easily modify the code to alter this but I just coded it this way because it was less complicated.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.