Hello Sir,
I have calculated no of days between two days like that given below:
DateTime startdate = new DateTime();
startdate =Convert.ToDateTime(DateMontYearToYearMonthDate(stdate.Text));
DateTime Enddate = new DateTime();
Enddate = Convert.ToDateTime(DateMontYearToYearMonthDate(endate.Text));
TimeSpan nod = (Enddate - startdate);
numdays.Text = nod.TotalDays.ToString();
but i need to calculate no of days between two dates except sunday?
how to do this in c#.if u answer it will more help for me to do this.thanks in advance.