this is my json :
[
{"ID":"1","DATETIME":"2018-05-02T00:00:00"},
{"ID":"2","DATETIME":"2018-05-02T00:00:00"},
{"ID":"3","DATETIME":""},
{"ID":"4","DATETIME":"2018-05-02T00:00:00"}
]
I'm using DataTable dt = JsonConvert.DeserializeObject<DataTable>(jsondata); to convert from json to datatable, however with the null datetime column I get the following error:
String was not recognized as a valid DateTime.Couldn't store <> in DATETIMEColumn. Expected type is DateTime.
So how can I convert my json to datatable with all columns is string