Here is my Dart code,
void main() {
DateTime dt1 = DateTime.tryParse("2018-11-23T12:32:53.2928904");
DateTime dt2 = DateTime.tryParse("2018-11-23T12:32:53.292890");
print(dt1);
print(dt2);
}
with result,
null
2018-11-23 12:32:53.293
I'm getting a json result from a rest API which contains the DateTime value
"2018-11-23T12:32:53.2928904"
But when I try to parse it, I'm getting null. When i reduce one character at the end I'm able to parse it. How do I parse the result to a DateTime object? The rest API is developed with ASP.net Framework 4.5 in c#.