DateTime d1 = new DateTime(1999, 5, 4, 12, 45, 33, 50); DateTime d2 = new DateTime(1999, 5, 4, 12, 48, 38, 50); TimeSpan ts = d2 - d1; MessageBox.Show(ts.ToString("mm\\:ss"));
System.TimeSpan
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)