DateTimeFormatInfo.GetFormat Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Returns an object of the specified type that provides a DateTime formatting service.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- formatType
- Type: System.Type
The Type of the required formatting service.
Return Value
Type: System.ObjectThe current DateTimeFormatInfo object, if the type of formatType is DateTimeFormatInfo; otherwise, Nothing.
Implements
IFormatProvider.GetFormat(Type)The formatting and parsing methods of the base data types that include an IFormatProvider parameter invoke this method when the current DateTimeFormatInfo object is passed as the IFormatProvider parameter.
This method implements IFormatProvider.GetFormat.
Show: