Calc No. of Weekdays in Date Range
I would like to write a script that will identify the number of Weekdays (e.g. Sundays, Wednesdays, etc.) within a given date range. For example, the User identifies a start date of January 1, 2010, and and end date of February 1, 2010 and has selected "Tuesday"; the script should produce the number of Tuesdays within the date range, or, in this case, 4.