How to disable or prevent automatic datetime conversion when JArray.parse?

winanjaya 146 Reputation points
2022-10-28T16:33:47.173+00:00

Hi,

How to disable or prevent automatic datetime conversion when JArray.parse?

JArray ja = JArray.parse(fromString); --> I didn't find the option in JsonLoadSettings for disabling the automatic datetime conversion.

when running in Postman, it show correctly like below:

[  
 {  
    "startDate": "2022-10-03T22:03:15+00:00",  
    "endDate": "2022-10-03T22:03:15+00:00"  
  }  
]  

but when running in my C# code, it converted to UTC+0

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,204 questions
0 comments No comments
{count} votes

0 additional answers

Sort by: Most helpful