8th March 2010
public static int GetWeekNumber(DateTime dtPassed) { CultureInfo ciCurr = CultureInfo.CurrentCulture; int weekNum = ciCurr.Calendar.GetWeekOfYear(dtPassed, CalendarWeekRule.FirstFourDayWeek, DayOfWeek.Monday); return weekNum; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)