DateTimeFormatInfo.GetFormat
Method
Definition
Returns an object of the specified type that provides a date and time formatting service.
public object GetFormat (Type formatType);
Parameters
- formatType
- Type
The type of the required formatting service.
Returns
The current object, if formatType is the same as the type of the current DateTimeFormatInfo; otherwise, null.
Remarks
The Format(String, IFormatProvider) method supported by the base data types invoke this method when the current DateTimeFormatInfo object is passed as the IFormatProvider parameter. This method implements IFormatProvider.GetFormat.