| |||||
DateTimeFormatInfo.GetInstance MethodSystem.Globalization Namespace DateTimeFormatInfo Class Returns the DateTimeFormatInfo associated with the specified IFormatProvider. [ VB ] public Shared Function GetInstance ( _ ByVal provider As IFormatProvider _ ) As DateTimeFormatInfo [ C# ] public static DateTimeFormatInfo GetInstance ( IFormatProvider provider ); [ C++ ] public: static DateTimeFormatInfo* GetInstance ( IFormatProvider* provider ); [ JScript ] static function GetInstance ( provider : IFormatProvider ) : DateTimeFormatInfo; Parameters
Return ValueA DateTimeFormatInfo associated with the specified IFormatProvider. RemarksThis method uses the IFormatProvider.GetFormat method of formatProvider using DateTimeFormatInfo as the Type parameter. If formatProvider is a null reference ( Nothing in Visual Basic ) or if IFormatProvider.GetFormat returns a null reference ( Nothing ), this method returns CurrentInfo. You can get a DateTimeFormatInfo for a specific culture using one of the following methods:
A DateTimeFormatInfo can be created only for the invariant culture or for specific cultures, not for neutral cultures. For more information about the invariant culture, specific cultures, and neutral cultures, see the CultureInfo class. See AlsoDateTimeFormatInfo Members IFormatProvider |
| ||||
Check out related books at Amazon
© 2000-2008 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 aspxtreme