Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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 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 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 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 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
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.