Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Private Sub Text_Date_Validate(Cancel As Boolean)
Text_Date = Format(Text_Date, "dd/mm/yyyy hh:mm:ss")
If Not IsDate(Text_Date) Then
MsgBox "This is not a valid date"
Cancel = True
End If
End Sub
Private Sub Text_Date_Validate(Cancel As Boolean)
Text_Date = Format(Text_Date, "dd/mm/yyyy hh:mm:ss")
If IsDate(Text_Date) = False Then
MsgBox "This is not a valid date"
Cancel = True
End If
End Sub
IMO if the programmer isn't going to take the second or so it will take to notice what the Not in front of the IsDate means how much effort do you think they would put into going through the more complex code that most if not all applications involve...if some poor slob of a programmer every has to go through my code, there really is no confusion in what I'm testing for if you see "IsDate(var) = True" or "IsDate(var) = False".
IMO if the programmer isn't going to take the second or so it will take to notice what the Not in front of the IsDate means how much effort do you think they would put into going through the more complex code that most if not all applications involve...
In programming, using shortcuts is considered a "bad habit". I think everyone is guilty of it to some extent.