[Gambas-user] IsDate(string) - how good is it?

Benoît Minisini g4mba5 at gmail.com
Thu Jan 6 12:44:12 CET 2022


Le 06/01/2022 à 09:14, bb a écrit :
> By that I mean, what type of strings can be interpreted as a date?
> 
> For example, IsDate("1/Jan/2022") returns false.
> 
> I am trying to determine whether a gridview cell is actually a date,
> but gridviews only have string contents. My human brain immediately
> interprets that string as a date but IsDate doesn't. So what are the
> "limits" of what IsDate() can interpret?
> 
> b
> 
> 
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
> .
> 

'IsDate(xxx)' internally uses 'Val()' algorithm to convert the string to 
a date, and returns FALSE if it fails.

Regards,

-- 
Benoît Minisini


More information about the User mailing list