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