Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Convert.ToDateTime Method

Converts a specified value to a DateTime value.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method Static member ToDateTime(Boolean) Calling this method always throws InvalidCastException.
Public method Static member ToDateTime(Byte) Calling this method always throws InvalidCastException.
Public method Static member ToDateTime(Char) Calling this method always throws InvalidCastException.
Public method Static member ToDateTime(DateTime) Returns the specified DateTime object; no actual conversion is performed.
Public method Static member ToDateTime(Decimal) Calling this method always throws InvalidCastException.
Public method Static member ToDateTime(Double) Calling this method always throws InvalidCastException.
Public method Static member ToDateTime(Int16) Calling this method always throws InvalidCastException.
Public method Static member ToDateTime(Int32) Calling this method always throws InvalidCastException.
Public method Static member ToDateTime(Int64) Calling this method always throws InvalidCastException.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library ToDateTime(Object) Converts the value of the specified object to a DateTime object.
Public method Static member ToDateTime(SByte) Calling this method always throws InvalidCastException.
Public method Static member ToDateTime(Single) Calling this method always throws InvalidCastException.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library ToDateTime(String) Converts the specified string representation of a date and time to an equivalent date and time value.
Public method Static member ToDateTime(UInt16) Calling this method always throws InvalidCastException.
Public method Static member ToDateTime(UInt32) Calling this method always throws InvalidCastException.
Public method Static member ToDateTime(UInt64) Calling this method always throws InvalidCastException.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library ToDateTime(Object, IFormatProvider) Converts the value of the specified object to a DateTime object, using the specified culture-specific formatting information.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library ToDateTime(String, IFormatProvider) Converts the specified string representation of a number to an equivalent date and time, using the specified culture-specific formatting information.
Top
Show:
© 2015 Microsoft