FIX: "Invalid Date" Error When Using a Between Operator

Last reviewed: October 14, 1997
Article ID: Q107514
2.50 2.50a WINDOWS kbprg kbfixlist kbbuglist kberrmsg

The information in this article applies to:

  • Microsoft FoxPro for Windows, versions 2.5 and 2.5a

SYMPTOMS

International date formats produce an "Invalid date" error in the Relational Query By Example (RQBE) tool when the Between operator is used with a date field.

STATUS

Microsoft has confirmed this to be a problem in FoxPro 2.5 and 2.5a for Windows. This problem was corrected in FoxPro 2.5b for Windows.

MORE INFORMATION

Steps to Reproduce Problem

  1. In the Command window, set the date format to a foreign format, for example, type the following command:

          SET DATE TO BRITISH
    

  2. Create a new query in RQBE using the INVOICES database.

  3. Set the Selection Criteria to:

         Idate   Between   {17/05/90},{19/05/90}
    
    

  4. Run the query.

    The results should be incorrect because the first date has been converted to the American date format ("mm/dd/yy") as opposed to the format specified in step 1. To observe this change, choose the See SQL button.

  5. Save the query.

  6. Modify the query.

The error message "Invalid Date: Enter date in the form: dd/mm/yy" appears because 17/05/90 is not a valid American date.


Additional reference words: FoxWin buglist2.50 buglist2.50a fixlist2.50b
2.50 2.50a buglist2.50 buglist2.50a
fixlist2.50b errmsg err msg
KBCategory: kbprg kbfixlist kbbuglist kberrmsg
KBSubcategory: FxtoolRqbe
Keywords : FxtoolRqbe kbbuglist kberrmsg kbfixlist kbprg
Version : 2.50 2.50a
Platform : WINDOWS
Solution Type : kbfix


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: October 14, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.