Hello
I have the following code to display my time difference on a label and it works fine until my endtime is less ie. "01:00:00" and now() is more ie. "13:00:00"
What can I do to rectify this?
Dim EndTime As New DateTime(Now.Year, Now.Month, Now.Day, My.Settings.EndHour, _
My.Settings.EndMinute, 0)
Dim currentTime As Date = DateTime.Now().ToString("HH:mm:ss")
Dim Timeremain As Date = (EndTime - Now).ToString
Label8.Text = currentTime
Label14.Text = Timeremain.ToString("HH:mm:ss")