how can i get all the dates of the week ?please give me the syntax?
Want a help regarding date and time functions in C#?
Not sure I understand what you want but if I wanted to do something with all the 'dates' of this week I would write something like this:
DateTime aDate = DateTime.Today;
aDate = aDate.AddDays( - (int) aDate.DayOfWeek);
for(int i = 0; i %26lt; 7; i++) {
ProcessDate(aDate);
aDate = aDate.AddDays(1);
}
Reply:u refer the websites www.codeguru.com or www.codeproject.com
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment