Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2017 Microsoft