How To Get Date or Serial Result from DateSerial or DateValue (95510)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition for Windows 2.0
- Microsoft Visual Basic Standard Edition for Windows 3.0
- Microsoft Visual Basic Professional Edition for Windows 2.0
- Microsoft Visual Basic Professional Edition for Windows 3.0
- Microsoft Visual Basic Standard Edition for Windows 1.0
This article was previously published under Q95510 SUMMARY
In Visual Basic versions 2.0 and 3.0, the DateSerial and DateValue
functions return a variant data type of VarType 7 (Date) instead of a date
serial number. The date is still stored internally in the serial number
format returned by the DateSerial and DateValue functions in Visual Basic
version 1.0 and can be obtained by using the CDbl function in versions 2.0
and 3.0.
This is not a bug. This is a special feature of versions 2.0 and 3.0.
Modification Type: | Minor | Last Reviewed: | 7/1/2004 |
---|
Keywords: | kbhowto KB95510 |
---|
|