cDateTime: 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 a normal VB error will be raised during the assignment.

See Also

Project VBCorLib Overview Class cDateTime Overview cDateTime Properties cDateTime Methods ToLongTimeString ToShortDateString