A
andrew
I am running an ASP.net program written in VB. At one point I try to convert
a date string into a date time object... this string is from a central dev
server and the code works on many other machines.
Convert.ToDateTime("")
I get the string in the format MM/DD/YYYY (06/26/2007)
The code breaks and I get the "String was not recognized as a valid
DateTime" error message unless I manually change the input string to
DD/MM/YYY (26/06/2007).
I went into control panel "Regional Settings" and changed from Canadian to
US... where short date is MM/DD/YYYY... that didn't seem to help.
Does anyone know how I can fix this rather annoying issue?
a date string into a date time object... this string is from a central dev
server and the code works on many other machines.
Convert.ToDateTime("")
I get the string in the format MM/DD/YYYY (06/26/2007)
The code breaks and I get the "String was not recognized as a valid
DateTime" error message unless I manually change the input string to
DD/MM/YYY (26/06/2007).
I went into control panel "Regional Settings" and changed from Canadian to
US... where short date is MM/DD/YYYY... that didn't seem to help.
Does anyone know how I can fix this rather annoying issue?