asp.net.ph

DateTime.FromOADate Method

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;

Parameters

d
An OLE Automation Date value.

Return Value

A DateTime that represents the same date and time as d.

Exceptions


Exception Type Condition
ArgumentException The date is not a valid OLE Automation Date value.

Remarks

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.

See Also

DateTime Members   ToOADate Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph