PRB: Century Not Picked Up from Date & Time Control PanelID: Q156009
|
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).
This behavior is by design.
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.
SET CENTURY OFF
x={05/15/05}
? x
SET CENTURY ON
x={05/15/05}
? x
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