Convert::ToDateTime Method
Converts a specified value to a DateTime value.
Assembly: mscorlib (in mscorlib.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | ToDateTime(Boolean) | Calling this method always throws InvalidCastException. |
![]() ![]() | ToDateTime(Byte) | Calling this method always throws InvalidCastException. |
![]() ![]() | ToDateTime(Char) | Calling this method always throws InvalidCastException. |
![]() ![]() | ToDateTime(DateTime) | Returns the specified DateTime object; no actual conversion is performed. |
![]() ![]() | ToDateTime(Decimal) | Calling this method always throws InvalidCastException. |
![]() ![]() | ToDateTime(Double) | Calling this method always throws InvalidCastException. |
![]() ![]() | ToDateTime(Int16) | Calling this method always throws InvalidCastException. |
![]() ![]() | ToDateTime(Int32) | Calling this method always throws InvalidCastException. |
![]() ![]() | ToDateTime(Int64) | Calling this method always throws InvalidCastException. |
![]() ![]() | ToDateTime(Object^) | Converts the value of the specified object to a DateTime object. |
![]() ![]() | ToDateTime(Object^, IFormatProvider^) | Converts the value of the specified object to a DateTime object, using the specified culture-specific formatting information. |
![]() ![]() | ToDateTime(SByte) | Calling this method always throws InvalidCastException. |
![]() ![]() | ToDateTime(Single) | Calling this method always throws InvalidCastException. |
![]() ![]() | ToDateTime(String^) | Converts the specified string representation of a date and time to an equivalent date and time value. |
![]() ![]() | ToDateTime(String^, IFormatProvider^) | Converts the specified string representation of a number to an equivalent date and time, using the specified culture-specific formatting information. |
![]() ![]() | ToDateTime(UInt16) | Calling this method always throws InvalidCastException. |
![]() ![]() | ToDateTime(UInt32) | Calling this method always throws InvalidCastException. |
![]() ![]() | ToDateTime(UInt64) | Calling this method always throws InvalidCastException. |

