This documentation is archived and is not being maintained.

DateTime.ToString Method

Converts the value of the current DateTime object to its equivalent string representation.

Name Description
DateTime.ToString () Converts the value of the current DateTime object to its equivalent string representation.

Supported by the .NET Compact Framework.

DateTime.ToString (IFormatProvider) Converts the value of the current DateTime object to its equivalent string representation using the specified culture-specific format information.

Supported by the .NET Compact Framework.

DateTime.ToString (String) Converts the value of the current DateTime object to its equivalent string representation using the specified format.

Supported by the .NET Compact Framework.

DateTime.ToString (String, IFormatProvider) Converts the value of the current DateTime object to its equivalent string representation using the specified format and culture-specific format information.

Supported by the .NET Compact Framework.

Show: