My paradoxical or perhaps trivial problem is to create me a list of the days in format DD - MM - YY from the date of today. Suppose we have today as " 11/04/2015 ". I want to create a list of datetime that starts exactly from Monday, 02.11.2015 to Sunday, 08.11.2015. How is this possible?
I thought initially :
DateTime today = new DateTime.Now;
int posDayOfWeek = (int)today.DayOfWeek;
if (posDayOfWeek < 7 && posDayOfWeek > 1)
{
// And from there a black hole in my brain ....
}
How can I accomplish this?