I can't work out why this VB.net code is not working..
What I am trying to do is if value1 > value2
then show a messagebox saying expired else show a messagebox saying not expired.
If "4-3-13 10:54:22" > "15-3-13 12:23:30" Then
MsgBox("Expired")
Else
MsgBox("Not Expired")
End If
everytime it comes up saying expired even knowing it shouldn't.
When I change it from 15-3-13 12:23:30
to 1-3-13 12:23:30
it still say expired.
If I change my code to be:
If "4-3-13 10:54:22" < "15-3-13 12:23:30" Then
MsgBox("Not Expired")
Else
MsgBox("Expired")
End If
It still returns wrong.
How do I make it so that:
DATE1 = 4-3-13 10:54:22
DATE2 = 15-3-13 12:23:30
IF DATE1 > DATE2 THEN
Expired
else
Not Expired
Should return 'Not expired'
Anyone able to help.. I can't work it ?