c# check if there is 5 mins space between two datestime

96

c# check if there is 5 mins space between two datestime -

DateTime a = new DateTime(2010, 05, 12, 13, 15, 00);
DateTime b = new DateTime(2010, 05, 12, 13, 45, 00);
Console.WriteLine(b.Subtract(a).TotalMinutes);

Comments

Submit
0 Comments