DATEVALUE# Function in Basic 7.00 Uses MM-DD-YY, Not DD-MM-YY (58791)
This article was previously published under Q58791
SUMMARY
The DATEVALUE# function that comes in the Date/Time Library of
Microsoft Basic Professional Development System (PDS) Version 7.00
does not interpret dates in the form of "dd/mm/yy" or "dd-mm-yy,"
where the day number precedes the month number (dd stands for day, mm
stands for month, and yy stands for year). Instead, the DATEVALUE# function interprets dates in the form of "mm/dd/yy" or "mm-dd-yy," where the month number precedes the day number. For example, you get
"Illegal Function Call" (error 5) when passing "30/12/88" or
"30-12-88" to the DATEVALUE# function.
Both Page 427 of the "Microsoft Basic 7.0: Language Reference" manual
(for 7.00 and 7.10) and also the "HELP: DateValue# Function Details"
screen in the Microsoft Advisor online Help system in QBX.EXE
incorrectly state that "30/12/88" is one of the acceptable formats.
This should be changed to say that "12/30/88" ("mm/dd/yy") format is
accepted by the DATEVALUE# function.
Also, the "HELP: DateValue# Function Details" screen in the Microsoft
Advisor online Help system in QBX.EXE incorrectly states: "To use
DateValue# in the QBX environment, use the FINANCER.QLB Quick
library." This should be changed to say the DTFMTER.QLB Quick library.
(Page 427 of the reference manual correctly says to use DTFMTER.QLB in
QBX.)
This information applies to Microsoft Basic Professional Development
System (PDS) versions 7.00 and 7.10 for MS-DOS and MS OS/2.
Modification Type: |
Minor |
Last Reviewed: |
1/8/2003 |
Keywords: |
KB58791 |
|