Click or drag to resize
ConvertToString Method (DateTime)
Converts the value of the specified DateTime to its equivalent string representation.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public static string ToString(
	DateTime value
)

Parameters

value
Type: SystemDateTime
The date and time value to convert.

Return Value

Type: String
The string representation of value.
See Also