Tuesday, August 31, 2004

Just Silly.Net

If I do this:

Dim i as DateTime
i = #9/14/2004 1:00:00 PM#

That's good, but if I do this:

Dim i as DateTime
Dim x as String
x = "9/14/2004 1:00:00 PM"
i = CDate(x)

That's bad, because the CDate method reads my system default and recognises the date format as DD/MM/YYYY instead of the .Net standard of MM/DD/YYYY!!!