We recently migrated some code from VB6 to Net 4. Among the code was this line:
If Now<CDate("28-08-2012") Then
One of our customers contacted support because of a program error and it surfaced that his computer produced an error on this line because he had his locale set to English (US). The exact same code did not bomb while it was VB6.
So, how is this difference to be explained?
(I am just finishing tearing out all the CDate
functions from the Net code and replacing it by a yyyy,mm,dd DateTime
constructor)