Calculate Vacation Days
Posted on 2007-10-11
I have a windows form with two datetimepickers. The first is for when you leave on vacation and the second is when you return from vacation. I would like to calculate the amount of work days (Mon thru Friday) a person is on vacation including the day they entered as first day of vacation, using the datetimepicker.value.
You take a vacation from Monday October 15 to Monday October 22, you will have been on vacation for five work days, except I want to calculate for larger spans than a week, like months at a time.