private static void SetWeekFromSchedule(DateTime theDate) { while (!theDate.DayOfWeek.Equals(DayOfWeek.Sunday)) { theDate = theDate.AddDays(1); } CurrWeek = Int32.Parse(TflWs.GetWeekFor(theDate)); }
private static void SetWeekFromSchedule(DateTime theDate) { while (!theDate.DayOfWeek.Equals(DayOfWeek.Sunday)) { theDate = theDate.AddDays(1); } CurrWeek = Int32.Parse(TflWs.GetWeekFor(theDate)); // check for probowl weekend if (CurrWeek == 0) { theDate = theDate.AddDays(1); while (!theDate.DayOfWeek.Equals(DayOfWeek.Sunday)) { theDate = theDate.AddDays(1); } CurrWeek = Int32.Parse(TflWs.GetWeekFor(theDate)); } }