DateTime parsing
Consider using this line: DateTime.ParseExact(Log.Date, “MMM d HH:mm:ss”, CultureInfo.InvariantCulture, DateTimeStyles.AllowWhiteSpaces); Notice that I removed one of the spaces between the month and the day. That’s because AllowWhiteSpaces literally means: Specifies that s may contain leading, inner, and trailing white spaces not defined by format.