3
Answers

Make date in calendar selectable only 3 days prior today and

Priya Bm

Priya Bm

9y
846
1
hi,
 
I am using ajax calendar extender and disabling past dates and future dates.
 
Below is the code to access three days before from the current date.  
 
             txtdateCalendarExtender.StartDate = DateTime.Now.AddDays(-3); 
 
when counting days it should not count weekend.
Eg: today is tuesday . 3 days before means it is showing saturday. In this case it should not count sat and sunday..
 
How to do this in c#?
Pls help 
Answers (3)
Next Recommended Forum