Converts this instance to a Double value
[Visual Basic] Overridable Public Function ToDouble() As Double [C#] public virtual double ToDouble(); [C++] public: virtual double ToDouble(); [JScript] public function ToDouble() : double;
The Double value for this instance.
Exception Type | Condition |
---|---|
InvalidCastException | If this DateTime is not a Double value. |
The ToDouble method casts this DateTime instance into a double-precision floating point number (double) value. An exception is thrown if this instance cannot be coerced into the double.
DateTime Structure | DateTime Members | System Namespace | Double