Date subtraction, omitting weekends

evanheld

Newcomer
Joined
Nov 20, 2003
Messages
13
Location
Sarasota, FL
I am using VB.NET 2003. I have the calendar control set to return multiple dates if the user selects mutiple dates. I am getting the start and end dates from the calendar control, and then using the System.TimeSpan type to do a subtract on the date. This all works fine, but I need to omit weekends as this particular calendar is returning dates to an HR person who is using the calendar for employee vacation days (and weekends don't count as vacation days.)

I'm thinking of using the DayOfWeek function to return the day of week by iterating through each selected day.

Is there a better way to do this using the Caledar control?

Thanks in advance.

evanheld
 
Back
Top