Method GetFormatInfo
GetFormatInfo(IFormatProvider?)
Gets the DateTimeFormatInfo from the specified format provider,
or uses the current culture if the provider is null.
public static DateTimeFormatInfo GetFormatInfo(IFormatProvider? formatProvider)
Parameters
formatProviderIFormatProviderThe format provider to retrieve the culture-specific information from. If
null, the current culture will be used.
Returns
- DateTimeFormatInfo
The DateTimeFormatInfo associated with the specified format provider.