Export (0) Print
Expand All

Convert.ToDateTime Method

Converts a specified value to a DateTime.

Name Description
Convert.ToDateTime (Boolean) Calling this method always throws InvalidCastException.
Convert.ToDateTime (Byte) Calling this method always throws InvalidCastException.
Convert.ToDateTime (Char) Calling this method always throws InvalidCastException.
Convert.ToDateTime (DateTime) Returns the specified DateTime; no actual conversion is performed.
Convert.ToDateTime (Decimal) Calling this method always throws InvalidCastException.
Convert.ToDateTime (Double) Calling this method always throws InvalidCastException.
Convert.ToDateTime (Int16) Calling this method always throws InvalidCastException.
Convert.ToDateTime (Int32) Calling this method always throws InvalidCastException.
Convert.ToDateTime (Int64) Calling this method always throws InvalidCastException.
Convert.ToDateTime (Object) Converts the value of the specified Object to a DateTime.

Supported by the .NET Compact Framework.

Convert.ToDateTime (SByte) Calling this method always throws InvalidCastException.
Convert.ToDateTime (Single) Calling this method always throws InvalidCastException.
Convert.ToDateTime (String) Converts the specified String representation of a date and time to an equivalent DateTime.

Supported by the .NET Compact Framework.

Convert.ToDateTime (UInt16) Calling this method always throws InvalidCastException.
Convert.ToDateTime (UInt32) Calling this method always throws InvalidCastException.
Convert.ToDateTime (UInt64) Calling this method always throws InvalidCastException.
Convert.ToDateTime (Object, IFormatProvider) Converts the value of the specified Object to a DateTime using the specified culture-specific formatting information.

Supported by the .NET Compact Framework.

Convert.ToDateTime (String, IFormatProvider) Converts the specified String representation of a number to an equivalent DateTime using the specified culture-specific formatting information.

Supported by the .NET Compact Framework.

Community Additions

ADD
Show:
© 2014 Microsoft