I have two masked TextBox controls and was wondering how I\'d go about getting the time in each one and then converting the difference into milliseconds. Like, say in tb1 I
DateTime dt1 = DateTime.Parse(maskedTextBox1.Text); DateTime dt2 = DateTime.Parse(maskedTextBox2.Text); TimeSpan span = dt2 - dt1; int ms = (int)span.TotalMilliseconds;