asp.net.ph

DateTimeFormatInfo.GetFormat Method

System.Globalization Namespace   DateTimeFormatInfo Class


Returns an object of the specified type that provides a DateTime formatting service.

[ VB ]
NotOverridable Public Function GetFormat ( _
   ByVal formatType As Type _
) As Object Implements IFormatProvider.GetFormat

[ C# ]
public object GetFormat ( 
   Type formatType
);

[ C++ ]
public: __sealed Object* GetFormat ( 
   Type* formatType
);

[ JScript ]
function GetFormat ( 
   formatType : Type
) : Object;

Parameters

formatType
The Type of the required formatting service.

Return Value

The current DateTimeFormatInfo, if formatType is the same as the type of the current DateTimeFormatInfo; otherwise, a null reference ( Nothing in Visual Basic ).

Implements

IFormatProvider.GetFormat

Remarks

The Format ( String, IFormatProvider ) method supported by the base data types invoke this method when the current DateTimeFormatInfo is passed as the IFormatProvider parameter. This method implements IFormatProvider.GetFormat.

See Also

DateTimeFormatInfo Members   IFormatProvider   GetFormat Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph