Article ID: 192768 - View products that this article applies to.
This article was previously published under Q192768
This article has been archived. It is offered "as is" and will no longer be updated.
Using an ambiguous date/datetime string in Visual FoxPro 6.0 causes an ambiguous date/datetime constant error message to occur. For example:
Use the following format:
The error message is missing a reference to an optional comma between the Date and Time string.
To include the Hour and retain Minutes and Seconds the default in your datetime string, use one of the following formats:
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:
194022To download the latest Visual Studio service pack, visit the following Microsoft Web site:
(http://support.microsoft.com/kb/194022/EN-US/ )INFO: Visual Studio 6.0 Service Packs, What, Where, Why
(http://support.microsoft.com/kb/194295/EN-US/ )HOWTO: Tell That a Visual Studio Service Pack Is Installed
Steps to Reproduce BehaviorType the following date/time string in the Command window:
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.
Contact us for more help
Connect with Answer Desk for expert help.