I have a flat field containing several dates with two-digit years that I would like to import into VFP. I am using the command
but I am having trouble getting the correct century on the date fields automatically.
For instance, the string "04/25/95" which becomes "04/25/0095." Or the string "02/03/01" becomes "02/03/0001".
I have done
but that doesn't matter.
Is my only option to use code to adjust the dates after import? If so, is there a better command than
for adding years to a date?
Thanks for any insight,
Teresa
P.S. I tried to use keyword search but it is down right now. And I didn't see anything on the FAQ page.
Code:
APPEND FROM (file) TYPE SDF
For instance, the string "04/25/95" which becomes "04/25/0095." Or the string "02/03/01" becomes "02/03/0001".
I have done
Code:
SET CENTURY ON
Is my only option to use code to adjust the dates after import? If so, is there a better command than
Code:
GOMONTH()
Thanks for any insight,
Teresa
P.S. I tried to use keyword search but it is down right now. And I didn't see anything on the FAQ page.