How can I compare two diferent Time object in VB.Net. I have implemented the following snippet. I am still unable to get the desired output.
time_One = Now
el_Time = time_One - time_Two
Label1.Text = Now.ToShortTimeString
If Label1.Text < "06:30:00 PM" Then
Label1.Text = "-----"
Else
Label1.Text = el_Time.ToString
End If
Test Case:
I want to compare the current time with "06:30:00 PM
".
If the current time is smaller than "06:30:00 PM
" then, perform an action