DateTime lFnGetBeginningOfWeek(DateTime date)
{
return date.AddDays(-1 * (int)date.DayOfWeek).Date;
}
DateTime lFnGetEndOfWeek(DateTime aDate)
return aDate.AddDays(6 - (int)aDate.DayOfWeek);