29-11-22 07:33 PM
07-12-22 03:50 PM
public DataTable ConvertToDataTable(string json)
{
object o = JsonConvert.DeserializeObject(json);
return (DataTable)DeserialiseGeneric(o, true);
}
to this:
public DataTable ConvertToDataTable(string json)
{
JsonSerializerSettings serializerSettings = new JsonSerializerSettings();
serializerSettings.DateParseHandling = DateParseHandling.None;
object o = JsonConvert.DeserializeObject(json, serializerSettings);
return (DataTable)DeserialiseGeneric(o, true);
}
Once you're done, the Global Code should look like this:
Keep in mind that if you are performing any date/time calculations you will now have to handle changing the raw string to an actual DateTime data item.