What is going on that is making my local computer parse a date time differently than another computer. As you can see from my screen shot of debugging, the date 5/10/1983
is being parsed into 5/9/1983
, but if I do it in a C# fiddle as you can see at the link, it works fine.
Use Like the following:
string inputStr = "1995-05-10T00:00:00-00:00";
DateTime dt;
DateTime.TryParse(inputStr,CultureInfo.InvariantCulture,DateTimeStyles.AdjustToUniversal, out dt);
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments