L
Luigi
Hi all,
in my C# 2.0 application I have a test to perform a datetime conversion
(from string datatype), sort of:
Assert.AreEqual(Convert.ToDateTime("23/09/2008 14:31:45").....etc
The problem is that it works only in my machine, and not in the server.
The error is:
System.FormatException : String was not recognized as a valid DateTime.
at System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi,
DateTimeStyles styles)
at System.DateTime.Parse(String s, IFormatProvider provider)
How can I set the culture (or something else) to be independent form
international settings?
Thanks a lot.
in my C# 2.0 application I have a test to perform a datetime conversion
(from string datatype), sort of:
Assert.AreEqual(Convert.ToDateTime("23/09/2008 14:31:45").....etc
The problem is that it works only in my machine, and not in the server.
The error is:
System.FormatException : String was not recognized as a valid DateTime.
at System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi,
DateTimeStyles styles)
at System.DateTime.Parse(String s, IFormatProvider provider)
How can I set the culture (or something else) to be independent form
international settings?
Thanks a lot.