You could try the following:
DateTime d1 = new DateTime(2006,10,1);
DateTime d2 = new DateTime(2007,10,15);
TimeSpan tt = d2 - d1;
int totalWeeks = tt.Days/7;
And if you want exact difference in fraction also then instead of:
int totalWeeks = tt.Days/7;
use:
double totalWeeks = tt.TotalDays/7;