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:
TimeSpan
double weeks = (date1 - date2).TotalDays / 7;
1.4m articles
1.4m replys
5 comments
57.0k users