How to calculate the no : of working days in a month?
if i work 21 days per month means
how i calculate the no:of working days in a month except (Holiday) sunday?
How to calculate the no : of working days in a month?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

VulpesRank #55 · 29.2K reputationPosted Jun 16, 2012, 2:21 AM EDT
label1.Text = workingDays.ToString(); // 21
If you want to regard Saturday as a working day, then just change this line:
if(dt.DayOfWeek != DayOfWeek.Sunday && dt.DayOfWeek != DayOfWeek.Saturday) workingDays++;
to this:
if(dt.DayOfWeek != DayOfWeek.Sunday) workingDays++;