Just 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);
}
Here you will see how to find Start and End date for a specified date in ASP.Net.
Just 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);
}
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegisterMembers onlyeBook · ASP.NETASP.NET Tags in Web Forms: The Complete GuideDownload nowWrite a blog post and earn +250 SHARP when it is approved.
Write a blog
Join the conversation! Your thoughts help the community grow.