Lets assume you have Date1 and Date2 which are both DateTime type and you wish to calculate the difference between them in entire days.
You calculate the difference between the two dates, using the TimeSpan class.
TimeSpan diff = myDate2.Subtract(myDate1);
Then you convert the result ("diff") to whole days.
double DaysDiff = diff.TotalDays;