You are currently offline, waiting for your internet to reconnect

FIX: Ambiguous Date/Datetime Constant Error

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 anambiguous 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 theDate and Time string.
To include the Hour and retain Minutes and Seconds the default in yourdatetime string, use one of the following formats:
   ?{^1998-12-12, 10} && This returns 12-12-98 10:00:00 AM				

   ?{^1998-12-12 10:} && This returns 12-12-98 10:00:00 AM				
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.

Article ID: 192768 - Last Review: 10/26/2013 01:43:00 - Revision: 2.0

Microsoft Visual FoxPro 6.0 Professional Edition

  • kbnosurvey kbarchive kbbug kbfix kbxbase KB192768