Converts the current value to a DateTime based on the underlying type.
[Visual Basic] Overridable Public Function ToDateTime() As DateTime [C#] public virtual DateTime ToDateTime(); [C++] public: virtual DateTime ToDateTime(); [JScript] public function ToDateTime() : DateTime;
Exception Type | Condition |
---|---|
InvalidCastException | Always. |
Currently not implemented. Always throws an exception.