Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
DateTime start = new DateTime(<start date>); //see DateTime constructor for various formats of <start date>
DateTime end = new DateTime(<end date>);
int count = 0;
for (DateTime dt=start; dt<end; dt=dt.AddDays(1))
{
if (dt.DayOfWeek!=DayOfWeek.Saturday && dt.DayOfWeek!=DayOfWeek.Sunday)
count++;
}
//count is now num of weekdays in period