PRB: Century Not Picked Up from Date & Time Control Panel

ID: Q156009


The information in this article applies to:
  • Microsoft Visual FoxPro for Macintosh, version 3.0b


SYMPTOMS

Dates entered into memory variables, date fields, or date and time fields without the century default to the 20th century (that is, 1900s). This behavior occurs even if the century in the Date and Time control panel is set to a year in the 21st century (that is, 2000s).


STATUS

This behavior is by design.


MORE INFORMATION

Visual FoxPro expects that "19" is the default for the century. The DATE() function reports the correct century, however, since it reads the system date.

Steps to Reproduce Behavior

  1. In the Macintosh Date and Time control panel, change the year to 2000 or anything later.


  2. In the Visual FoxPro Command window, enter the following commands and you get "05/15/05" on the Visual FoxPro desktop:
    
    SET CENTURY OFF
    x={05/15/05}
    ? x 


  3. Now enter the following commands in the Command window and you get "05/15/1905" on the Visual FoxPro desktop:
    
    SET CENTURY ON
    x={05/15/05}
    ? x 


  4. Remember to set the system date back to the correct date.


For more information about how Microsoft products are affected by year 2000 (Y2K) issues, please see the following Microsoft World Wide Web site:
http://www.microsoft.com/y2k/

Additional query words:

Keywords : kb2000 kbMAC kbVFp FxenvGeneral FxprgGeneral
Version : MACINTOSH:3.0b
Platform : MACINTOSH
Issue type : kbprb


Last Reviewed: May 24, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.