I have two DateTime variables and i need to compute number of weeks between them.
What is the quickest (and correct) way to do this?
Use TimeSpan:
double weeks = (date1 - date2).TotalDays / 7;