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. 

 

  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati
posted @ Monday, February 20, 2006 11:29 AM
Print

Comments on this entry:

No comments posted yet.

Your comment:



(not displayed)


 
 
 
 
 

Live Comment Preview:

 
«February»
SunMonTueWedThuFriSat
2930311234
567891011
12131415161718
19202122232425
26272829123
45678910