/// <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; }
Get Week of the Year
on Posted on under category Categories c# and tagged as with Leave a comment on Get Week of the Year
get the Week Number of the year in C#