GetFormat Method

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.

Namespace:  System.Globalization
Assembly:  mscorlib (in mscorlib.dll)

'Declaration
Public Function GetFormat ( _
	formatType As Type _
) As Object

Parameters

formatType
Type: System.Type
The Type of the required formatting service.

Return Value

Type: System.Object
The 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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft