How do you convert a string such as 2009-05-08 14:40:52,531 into a DateTime?
2009-05-08 14:40:52,531
DateTime
String now = DateTime.Now.ToString("YYYY-MM-DD HH:MI:SS");//make it datetime DateTime.Parse(now);
this one gives you
2019-08-17 11:14:49.000