FIX: APPEND FROM TYPE SDF Brings in Older Dates Incorrectly (163957)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
This article was previously published under Q163957 SYMPTOMS
When appending from a text file using the TYPE SDF clause of the APPEND
FROM command, older dates do not append into the table properly. (This
assumes that the field in the table is defined as a date field. If the
field is defined as a character field, then the dates in the text file
append properly.)
As the date in the text file is appended to the date field, the following
occurs:
- The month of the date in the text file is placed into the year section
of the date field.
- The second digit in the day of the date in the text file is placed into
the month section of the date field with a zero replacing the first
digit.
- The year of the date in the text file is placed into the day section
of the date field.
RESOLUTION
When creating the structure of the table, define the field that holds the
date as a character field. This character field can be changed to a date
field after the text file has been appended into the table.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. This bug was corrected in Visual FoxPro 6.0.
Modification Type: | Minor | Last Reviewed: | 2/16/2005 |
---|
Keywords: | kbBug kbfix kbList KB163957 |
---|
|