how would i get the days of the week from a MonthCalendar?
if i select a day lets say. August 22,2013,
i would want a code that would get all the codes from Monday to sunday including August 22,2013.
that means i would get, aug 18,19,20,21,22,23,24,25.
so this is my solution but this is not what i want.
List<DateTime> oneweek = new List<DateTime>();
for (int i = 7; 0 <= i; i--)
{
oneweek.Add(mcCalendar.SelectionEnd.Subtract(new TimeSpan(i, 0, 0, 0)));
}
it would get a list of dates from aug 22 and 7 days later.
like i said, i want the days of the week including august 22, from monday to sunday. aug 18,19,20,21,22,23,24,25.