Convert.ToDateTime Method

 

Converts a specified value to a DateTime value.

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

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticToDateTime(Boolean)

Calling this method always throws InvalidCastException.

System_CAPS_pubmethodSystem_CAPS_staticToDateTime(Byte)

Calling this method always throws InvalidCastException.

System_CAPS_pubmethodSystem_CAPS_staticToDateTime(Char)

Calling this method always throws InvalidCastException.

System_CAPS_pubmethodSystem_CAPS_staticToDateTime(DateTime)

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

System_CAPS_pubmethodSystem_CAPS_staticToDateTime(Decimal)

Calling this method always throws InvalidCastException.

System_CAPS_pubmethodSystem_CAPS_staticToDateTime(Double)

Calling this method always throws InvalidCastException.

System_CAPS_pubmethodSystem_CAPS_staticToDateTime(Int16)

Calling this method always throws InvalidCastException.

System_CAPS_pubmethodSystem_CAPS_staticToDateTime(Int32)

Calling this method always throws InvalidCastException.

System_CAPS_pubmethodSystem_CAPS_staticToDateTime(Int64)

Calling this method always throws InvalidCastException.

System_CAPS_pubmethodSystem_CAPS_staticToDateTime(Object)

Converts the value of the specified object to a DateTime object.

System_CAPS_pubmethodSystem_CAPS_staticToDateTime(Object, IFormatProvider)

Converts the value of the specified object to a DateTime object, using the specified culture-specific formatting information.

System_CAPS_pubmethodSystem_CAPS_staticToDateTime(SByte)

Calling this method always throws InvalidCastException.

System_CAPS_pubmethodSystem_CAPS_staticToDateTime(Single)

Calling this method always throws InvalidCastException.

System_CAPS_pubmethodSystem_CAPS_staticToDateTime(String)

Converts the specified string representation of a date and time to an equivalent date and time value.

System_CAPS_pubmethodSystem_CAPS_staticToDateTime(String, IFormatProvider)

Converts the specified string representation of a number to an equivalent date and time, using the specified culture-specific formatting information.

System_CAPS_pubmethodSystem_CAPS_staticToDateTime(UInt16)

Calling this method always throws InvalidCastException.

System_CAPS_pubmethodSystem_CAPS_staticToDateTime(UInt32)

Calling this method always throws InvalidCastException.

System_CAPS_pubmethodSystem_CAPS_staticToDateTime(UInt64)

Calling this method always throws InvalidCastException.

Return to top
Show: