Why DateTime.ParseExact(String, String, IFormatProvider) need the IFormatProvider?

why do we need to provide a IFormatProvider object? what is the point behind it? It allows for culture-specific options. In particular: The format you use could be a standard date/time format, which means different patterns in different cultures You could use : or / in your pattern, which mean culture-specific characters for the time … Read more

What does IFormatProvider do?

In adition to Ian Boyd’s answer: Also CultureInfo implements this interface and can be used in your case. So you could parse a French date string for example; you could use var ci = new CultureInfo(“fr-FR”); DateTime dt = DateTime.ParseExact(yourDateInputString, yourFormatString, ci);

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