get number of weeks away from today

c#, date

Solution

(futureDate - DateTime.Today).TotalDays / 7

Problem

i have a date in the future and i want to find out how many weeks away this is.

Original source