I have following code to get the weeknumber of the year given in the DateTime object Time
public static int WeeksInYear(DateTime date) { Grego
1/1/2012 it was sunday. I believe that's why you get 52, because it was last day of the last year week. For the 2nd of january you should get the right result.