/// <summary> /// Gets the week number of Year. /// </summary> /// <param name="dtPassed">The dt passed.</param> /// <returns></returns> private int GetWeekNumber(DateTime dtPassed) { CultureInfo ciCurr = CultureInfo.CurrentCulture; int weekNum = ciCurr.Calendar.GetWeekOfYear(dtPassed, CalendarWeekRule.FirstFourDayWeek, DayOfWeek.Monday); return weekNum; }
Leave a Reply