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

Gianluigi bagonergi at gmail.com
Thu Jan 6 09:44:22 CET 2022


Il giorno gio 6 gen 2022 alle ore 09:39 Gianluigi <bagonergi at gmail.com> ha
scritto:

>
>
> Il giorno gio 6 gen 2022 alle ore 09:15 bb <adamnt42 at gmail.com> ha
> scritto:
>
>> 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 ]----
>>
>
> Have you tried like this: IsDate(Val("1/Jan/2022")) ?
>

Sorry: IsDate(Str(Val("1/Jan/2022")))


> Regards
> Gianluigi
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20220106/aa2bf70a/attachment.htm>


More information about the User mailing list