DateTime lFnGetBeginningOfWeek(DateTime date)
{
return date.AddDays(-1 * (int)date.DayOfWeek).Date;
}
DateTime lFnGetEndOfWeek(DateTime aDate)
{
return aDate.AddDays(6 - (int)aDate.DayOfWeek);
}
DateTime lFnGetBeginningOfWeek(DateTime date)
{
return date.AddDays(-1 * (int)date.DayOfWeek).Date;
}
DateTime lFnGetEndOfWeek(DateTime aDate)
{
return aDate.AddDays(6 - (int)aDate.DayOfWeek);
}
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Suthish NairPosted May 27, 2011, 5:45 AM
Sreenath GPosted May 27, 2011, 5:38 AM
Praveen KumarPosted May 27, 2011, 5:35 AM
Sreenath GPosted May 27, 2011, 5:04 AM
Posted May 27, 2011, 5:04 AM