How do I find the start of the week (both Sunday and Monday) knowing just the current time in C#?
Something like:
Something like:
DateTime.Now.StartWeek(Monday);
ANS
Using an extension method. They're the answer to everything you know! ;)
Which is used thusly:
|
No comments:
Post a Comment