SyntaxFix
Write A Post
Hire A Developer
Questions
This would give you the preceding Sunday (I think):
DateTime t = DateTime.Now; t -= new TimeSpan ((int) t.DayOfWeek, 0, 0, 0);