IF I get a user to type in a date or submit a date string to a sub routine, I need to know, or be able to check, that a correct date string has been entered.
In VB I can check if a string is a legitimate date by calling the 'IsDate' function...
If IsDate(DateString) Then 'Check that DateString is a legitimate date string
'Do something
Else
'Do something else
End IF
I can also format a date string using the 'Format' function...
DateString = Format(Now,"dd/MMM/yyyy")
Can these results be achieved easily in B4A?
In VB I can check if a string is a legitimate date by calling the 'IsDate' function...
If IsDate(DateString) Then 'Check that DateString is a legitimate date string
'Do something
Else
'Do something else
End IF
I can also format a date string using the 'Format' function...
DateString = Format(Now,"dd/MMM/yyyy")
Can these results be achieved easily in B4A?