Visual Basic function IsDate depends on Current Culture.

I was puzzled when VB function IsDate(20/02/2006) returned false( in Australia date format is dd/mm/yyyy).

After investigation using Reflector I found that it uses  Thread.CurrentThread.CurrentCulture and my ASP.NET application wasn't set to use AU culture by default. Using CurrentCulture does make sense, but it is not documented in MSDN. 

 

posted @ Monday, February 20, 2006 11:29 AM

Print

Comments on this entry:

No comments posted yet.

Your comment:



 (will not be displayed)


 
 
 
Please add 1 and 2 and type the answer here:
 

Live Comment Preview:

 
«August»
SunMonTueWedThuFriSat
272829303112
3456789
10111213141516
17181920212223
24252627282930
31123456