How to find Start and End date for a specified date in ASP.NetSGSreenath G15yPublished May 30, 2011, 12:00 AMUpdated May 30, 2011, 1:06 AM3.1k00Reactions×25BlogJust use these functions... DateTime lFnGetBeginningOfWeek(DateTime date) { return date.AddDays(-1 * (int)date.DayOfWeek).Date; } DateTime lFnGetEndOfWeek(DateTime aDate) { return aDate.AddDays(6 - (int)aDate.DayOfWeek); }CommentsJoin the conversation! Your thoughts help the community grow.Sign in to leave a commentIt is the same account you read, post and publish with — and you will come straight back to this page.Sign inCreate an account
Join the conversation! Your thoughts help the community grow.