BUG: Ambiguous Date/Datetime Constant Error

ID: Q192768


The information in this article applies to:


SYMPTOMS

Using an ambiguous date/datetime string in Visual FoxPro 6.0 causes an ambiguous date/datetime constant error message to occur. For example, the following error occurs:

Use the following format:
{^yyyy-mm-dd[hh[:mm[:ss]][a|p]]}


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 this to be a bug in the Microsoft products listed at the beginning of this article.


MORE INFORMATION

Steps to Reproduce Behavior

  1. 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.

Additional query words: kbXBase kbVFp600bug kbvfp600


Keywords          : 
Version           : WINDOWS:6.0
Platform          : WINDOWS 
Issue type        : kbbug 

Last Reviewed: August 3, 1999