Convert..::..ToDateTime Method
Overload List
Name | Description | |
---|---|---|
![]() ![]() |
ToDateTime(Object) |
Converts the value of the specified object to a DateTime object.
Note: Calling this method for built-in types (except [DateTime], [string]) always throws InvalidCastException.
|
![]() ![]() |
ToDateTime(Object, IFormatProvider) |
Converts the value of the specified object to a DateTime object, using the specified culture-specific formatting information.
Note: Calling this method for built-in types (except [DateTime], [string]) always throws InvalidCastException.
|