DateTime Compare in c#
c#, datetime
Solution
Try this:
TimeSpan diff = date2.Subtract(date1);
Problem
I want to compare two dateTime. Ex: ``` date1 = 13/01/2004 12:20:00 date2 = 13/01/2004 12:35:00 result = Compare(date2-date1); O/P : 15 Minutes ```