DOCUMENT:Q107514  23-NOV-1993  [B_WFOXPRO]
TITLE   :PRFOX: "Invalid Date" Error When Using a Between Operator
PRODUCT :FoxPro For Windows
PROD/VER:2.50 2.50a
OPER/SYS:WINDOWS
KEYWORDS:buglist2.50 buglist2.50a fixlist2.50b

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

RESOLUTION
==========

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: 2.50 2.50a buglist2.50 buglist2.50a
fixlist2.50b errmsg err msg

=============================================================================

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.

Copyright Microsoft Corporation 1993.