Convert.ToDateTime Method (UInt16)
.NET Framework (current version)
Calling this method always throws InvalidCastException.
This API is not CLS-compliant.
Assembly: mscorlib (in mscorlib.dll)
<CLSCompliantAttribute(False)> Public Shared Function ToDateTime ( value As UShort ) As Date
Parameters
- value
-
Type:
System.UInt16
The 16-bit unsigned integer to convert.
| Exception | Condition |
|---|---|
| InvalidCastException | This conversion is not supported. |
.NET Framework
Available since 1.1
Available since 1.1
Show: