Why DateTime.ParseExact(String, String, IFormatProvider) need the IFormatProvider?
问题 If we're using the ParseExact method for exact date-time's parsing using a specified format, why do we need to provide a IFormatProvider object? what is the point behind it? For example: DateTime.ParseExact(dateString, format, provider); Why do we need the provider here? 回答1: 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