Convert.ToDateTime Method (DateTime)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Returns the specified DateTime object; no actual conversion is performed.

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

public static DateTime ToDateTime(
	DateTime value
)

Parameters

value
Type: System.DateTime

A date and time value.

Return Value

Type: System.DateTime

value is returned unchanged.

.NET Framework
Available since 1.1
Return to top
Show: