Creates a DateTime from an OLE Automation Date.
[Visual Basic] Public Shared Function FromOADate( _ ByVal d As Double _ ) As DateTime [C#] public static DateTime FromOADate( double d ); [C++] public: static DateTime FromOADate( double d ); [JScript] public static function FromOADate( d : double ) : DateTime;
The DateTime value that represents the same date and time as the specified OLE Date.
Exception Type | Condition |
---|---|
ArgumentException | If the date is not a valid OLE Automation Date value. |
The FromOADate value must be a value between negative 657435.0 through positive 2958466.0. It is stored as a double-precision floating point number.
See ToOADate and System.OAVariantLib class, or a MSDN Online Libary search at http://MSDN.com/library/default.asp for more information on OLE Automation.
DateTime Structure | DateTime Members | System Namespace | Double | System.OAVariantLib | ToOADate