[Gambas-user] Bug with IsDate?
Benoît Minisini
gambas at ...1...
Mon Dec 20 20:11:51 CET 2010
> Question still valid, but I think there is problem with localization.
>
> ? IsDate(Cstr(Now))
> False
>
> ? IsDate(Str(Now))
> True
>
> Jussi
>
The wiki has been recently updated, but your IDE only update its documentation
cache once a week.
IsDate() takes a string, and returns if that string can be converted to a
date, by using localization.
So, IsDate(Str(Now)) will return True, as Str(Now) is a localized date,
whereas IsDate(CStr(Now)) will return False, as CStr(Now) is a non-localized
date.
I think only US and english people should have no difference between non-
localized and localized functions.
Regards,
--
Benoît Minisini
More information about the User
mailing list