string t1="3:20 PM"; string t2="10:30 PM";
TimeSpan tp = Convert.ToDateTime(t2).Subtract(Convert.ToDateTime(t1)); int hr = tp.Hours; int min = tp.Minutes; int sec = tp.Seconds;
string t1 = "3:20 PM"; string t2 = "10:30 PM"; DateTime dt1; DateTime.TryParse(t1, out dt1); DateTime dt2; DateTime.TryParse(t2, out dt2); TimeSpan span = dt2 - dt1;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)