Hi friends,
I am doing a project with school management system. In that i have to set working days and working day types in a predefined manner and also i can able change this working days manually. I am new with programming language so please help me how can i do it.please send any example for reference.
How to set working days for school projects
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Nattudurai EswaramurthyRank #5,536 · 296 reputationPosted Aug 16, 2012, 1:52 AM EDT
You need to write ur own algorithm for this.
I am just giving you an simple way
The easiest way is probably something like
DateTime start = new DateTime(2008, 10, 3); DateTime end = new DateTime(2008, 12, 31); int workingDays = 0; while( start end ) { if( start.DayOfWeek != DayOfWeek.Saturday && start.DayOfWeek != DayOfWeek.Sunday ) { workingDays++; } start = start.AddDays(1); } Please mark this answer as accepted answer if it resolves your problem.Nattudurai EswaramurthyRank #5,536 · 296 reputationPosted Aug 16, 2012, 1:54 AM EDT
Plz go through the following link,
http://www.codeproject.com/Articles/11666/Dynamic-Holiday-Date-Calculator
Please mark this answer as accepted answer if it resolves your problem.
Hemant KumarRank #1,202 · 1.5K reputationPosted Aug 16, 2012, 2:23 AM EDT