get number of minutes between two dates c# code example Example: fdifference between two date in hours c# double dif = (greaterDate - smallerDate).TotalHours;