Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / DateTime

DateTime extension method to give Week number

5.00/5 (1 vote)
6 Sep 2011CPOL 5.5K  
What about that :CultureInfo.CurrentCulture.Calendar.GetWeekOfYear(pd_date, CalendarWeekRule.FirstFourDayWeek, DayOfWeek.Monday);
What about that :
CultureInfo.CurrentCulture.Calendar.GetWeekOfYear(pd_date, CalendarWeekRule.FirstFourDayWeek, DayOfWeek.Monday);

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)