I have to code a program which finds the elapsed time when i enter the 2 times into 2 textboxes, one textbox will be the start time, the other textbox will be the end time, I am lost as to how I do this.
Example
Start time is 12:45
the end time is 13:15
then the elapsed time should be 30 minutes
Public Class Form1
Dim starttime As DateTime
Dim endtime As DateTime
Dim timetaken As TimeSpan
Private Sub btnOK_Click(sender As Object,
e As EventArgs) Handles btnOK.Click
starttime = txtStart.Text
endtime = txtEnd.Text
End Sub
End Class