string time1 = "12:43:20 PM";
string time2 = "2:43:20 PM";
DateTime dt1 = DateTime.Parse(time1);
DateTime dt2 = DateTime.Parse(time2);
string time3 = dt1.Subtract(dt2).ToString();
TextBox3.Text = DateTime.Parse(TextBox1.Text).Subtract(DateTime.Parse(TextBox2.Text)).ToString()
Dim TS As TimeSpan = TimeValue(TextBox1.Text) - TimeValue(TextBox2.Text)
TextBox3.Text = TS.ToString()
Private Sub DURATION_GotFocus(ByVal sender As Object, ByVal e As System.EventArgs)
DURATION.Text = DateTime.Parse(MARK_OUT.Text).Subtract(DateTime.Parse(MARK_IN.Text)).ToString()
End Sub
Private Sub DURATION_GotFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles DURATION.GotFocus
DURATION.Text = DateTime.Parse(MARK_OUT.Text).Subtract(DateTime.Parse(MARK_IN.Text)).ToString()
End Sub