I have a code in vb
var weekOfYear=DateAndTime.DatePart(DateInterval.WeekOfYear, date, FirstDayOfWeek.Monday, FirstWeekOfYear.FirstFullWeek);
which is http://msdn.microsoft.com/en-us/library/ms127415.aspx .
I caną find nothing equivalent to this in c¤, but I don’t want to create new algorithm, which I think would have some bugs 🙂
Which method should I use?
this can help