C# DateTime Parse is subtracting one day in ISO format

jw56578

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.

https://dotnetfiddle.net/0r2V2q

enter image description here

sujith karivelil

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.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

C# DateTime Parse is subtracting one day in ISO format

From Dev

How can one parse a unknown datetime format in c#

From Dev

Parse ISO 8601 to C# DateTime

From Dev

Parse YouTube ISO 8601 to DateTime C#

From Dev

C# automapper format datetime to iso string

From Dev

Parse String to DateTime format "day, month dat, year"

From Dev

Parse date format to DateTime c#

From Dev

Parse ISO 8601 both basic and extended format in c#

From Dev

Convert DateTime to ISO 8601 DateTime Format with timezone

From Dev

Calculating duration by subtracting two datetime columns in string format

From Dev

Invalid Operation On An ANSI DATETIME (Subtracting one timestamp from another in Teradata)

From Dev

Unable to parse DateTime with a custom format

From Dev

DateTime.Parse - changes format

From Dev

Parse string in the right Format to DateTime

From Dev

how to parse datetime from this format?

From Dev

How to parse "MongoDB datetime (ISO Date)" to NSDate on iOS (swift and objective-c)

From Dev

Javascript - parse locale datetime to us datetime format

From Dev

Print datetime in ISO format without milliseconds

From Dev

C# convert DateTime from one format to another

From Dev

C# convert DateTime from one format to another

From Dev

Parse DateTime in C#

From Dev

ANSI SQL for subtracting a day

From Dev

toLocaleDateString() is subtracting a day

From Dev

ANSI SQL for subtracting a day

From Dev

Subtracting days from a DateTime

From Dev

subtracting datetime fields

From Dev

How to subtract a day from datetime format in python?

From Dev

android string datetime format with month and day

From Dev

Joda time parse different datetime format

Related Related

HotTag

Archive