> 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

------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to