System Namespace DateTime Structure
Returns a DateTime equivalent to the specified OLE Automation Date.
[ VB ]
<Serializable>
Public Shared Function FromOADate ( _
ByVal d As Double _
} As DateTime
[ C# ]
[ Serializable ]
public static DateTime FromOADate (
double d
};
[ C++ ]
[ Serializable ]
public: static DateTime FromOADate (
double d
};
[ JScript ]
public Serializable
static function FromOADate (
d : double
} : DateTime;
- d
- An OLE Automation Date value.
A DateTime that represents the same date and time as d.
Exception Type |
Condition |
ArgumentException |
The date is not a valid OLE Automation Date value. |
d 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 the MSDN Online Library at http://MSDN.Microsoft.com/library/default.asp for more information on OLE Automation.
DateTime Members ToOADate