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
Use DateTime.Parse(string):
DateTime dateTime = DateTime.Parse(dateTimeStr);