public static int WeekNumber(this DateTime date) { return ((int) Math.Floor((date - new DateTime(1990, 1, 1)).TotalDays)) / 7; }