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.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)