System Namespace DateTime Structure
Converts the value of this instance to its equivalent string representation using the specified culture-specific format information.
[ VB ] <Serializable> NotOverridable Overloads Public Function ToString ( _ ByVal provider As IFormatProvider _ ) As String [ C# ] [ Serializable ] public string ToString ( IFormatProvider provider ); [ C++ ] [ Serializable ] public: __sealed String* ToString ( IFormatProvider* provider ); [ JScript ] public Serializable function ToString ( provider : IFormatProvider ) : String;
A string representation of value of this instance as specified by provider.
This instance is formatted with the general format specifier, 'G', as described in the Formatting Overview topic. The return value is identical to the value returned by ToString ( "G", null ).
The provider parameter is typically an instance of DateTimeFormatInfo. If provider is a null reference ( Nothing in Visual Basic ), the DateTimeFormatInfo associated with the current culture is used. For more information, see CultureInfo.CurrentCulture.
The below shows the output of using this overload of ToString for each of the available cultures.
Show me
DateTime Members DateTime.ToString Overload List DateTimeFormatInfo CultureInfo
© 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