CorDateTime: ToOADate

ToOADate

Converts the current instance to an Ole Automation date representation that is normally used in Visual Basic.



 Public Function ToOADate ( ) As Date

Return Values

Date -  The Visual Basic compatible date.

Remarks

It is possible that this instance holds a date outside of the valid range of dates that Visual Basic can represent. If this happens, then an OverflowException occurs.

See Also

Project CorLib Overview

Class CorDateTime Overview