Article ID: 192768
Article Last Modified on 8/7/2007
APPLIES TO
- Microsoft Visual FoxPro 6.0 Professional Edition
This article was previously published under Q192768
SYMPTOMS
Using an ambiguous date/datetime string in Visual FoxPro 6.0 causes an ambiguous date/datetime constant error message to occur. For example:
CAUSE
The error message is missing a reference to an optional comma between the Date and Time string.
RESOLUTION
To include the Hour and retain Minutes and Seconds the default in your datetime string, use one of the following formats:
?{^1998-12-12, 10} && This returns 12-12-98 10:00:00 AM
-or-
?{^1998-12-12 10:} && This returns 12-12-98 10:00:00 AM
STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.
This bug was corrected in Visual FoxPro 6.0 Service Pack 3. For additional information about Visual Studio service packs, click the following article numbers to view the articles in the Microsoft Knowledge Base:
194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why
194295 HOWTO: Tell That a Visual Studio Service Pack Is Installed
To download the latest Visual Studio service pack, visit the following Microsoft Web site:
MORE INFORMATION
Steps to Reproduce Behavior
Type the following date/time string in the Command window:
?{^1998-12-12 10} && To display date and 10:00:00 AM
NOTE: According to the preceding date/datetime format, the format used is valid. However, Visual FoxPro still produces an error with the Ambiguous Date/Datetime error message dialog box.
Keywords: kbbug kbfix kbxbase KB192768