Microsoft KB Archive/113526

= PRB: Can't Enter Valid Date with SET DATE and @ ... GET Date =

Article ID: 113526

Article Last Modified on 5/6/2003

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition
 * Microsoft Visual FoxPro 3.0b Standard Edition
 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 5.0a
 * Microsoft Visual FoxPro 6.0 Professional Edition
 * Microsoft FoxPro 2.5b
 * Microsoft FoxPro 2.5a
 * Microsoft FoxPro 2.5b
 * Microsoft FoxPro 2.6 Standard Edition
 * Microsoft FoxPro 2.0
 * Microsoft FoxPro 2.5b for MS-DOS
 * Microsoft FoxPro 2.5a
 * Microsoft FoxPro 2.5b for MS-DOS
 * Microsoft FoxPro 2.6 for MS-DOS
 * Microsoft FoxPro 2.5b for Macintosh
 * Microsoft Visual FoxPro 2.5c for Macintosh

-



This article was previously published under Q113526



SYMPTOMS
When you are entering a date with the date format specified as yy/mm/dd and CENTURY set to ON, you cannot enter a valid date.



RESOLUTION
Regardless of the desire for the short date format of yy/mm/dd with SET DATE ANSI and SET CENTURY ON, you must enter the date in the format:   2001/02/18.



STATUS
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.



Steps to Reproduce Problem
  In the Command window, issue the following commands: x=DATE SET DATE ANSI SET CENTURY ON     @ 1,1 GET x      READ CYCLE  Type "01" (without the quotation marks) and press the ENTER key.

From this point forward, you cannot enter a valid date; instead, the error message "Invalid Date" will always be returned.

Keywords: kbprb KB113526

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.