asp.net.ph

DateTime.ToString Method ( )

System Namespace   DateTime Structure


Converts the value of this instance to its equivalent string.

[ VB ]
<Serializable>
Overrides Overloads Public Function ToString ( ) As String

[ C# ]
[ Serializable ]
public override string ToString ( );

[ C++ ]
[ Serializable ]
public: String* ToString ( );

[ JScript ]
public Serializable
override function ToString ( ) : String;

Return Value

A string representation of value of this instance.

Remarks

The value of this instance is formatted using 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 ).

This method uses formatting information derived from the current culture. For more information, see CurrentCulture.

Example

The below shows the default DateTime.ToString ( ) output for each of the available cultures.

 Show me 

See Also

DateTime Members   DateTime.ToString Overload List   DateTimeFormatInfo   CultureInfo 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