Hi,
I will investigate that but you can
check the format used for dates in the Excel file (for example dd/mm/yy) and
see if it's the same in your application. By default FoxPro uses date in
American format (mm/dd/yy). The date format in your application
must match the one in your excel file.
In vFoxPro you can use the commands SET DATE and SET CENTURY to
make the date format match the one in your Excel files.
SET CENTURY OFF
SET DATE BRITISH
? DATE()
SET DATE AMERICAN
? DATE()
SET DATE USA
? DATE()
SET DATE JAPAN
? DATE()
SET DATE GERMAN
? DATE()
SET CENTURY ON
? DATE()
SET DATE JAPAN
? DATE()
Here are the settings and the resulting date formats:
Setting (Format)
AMERICAN (mm/dd/yy)
ANSI (yy.mm.dd)
BRITISH/FRENCH (dd/mm/yy)
GERMAN (dd.mm.yy)
ITALIAN (dd-mm-yy)
JAPAN (yy/mm/dd)
TAIWAN (yy/mm/dd)
USA (mm-dd-yy)
etc ...
>Hi,
>Thank for your reply.
>I find that the date format column in my excel worksheet cannot import to the cursor.
>all date value change to " / / " in the cursor after import. why ?
>
>Please advise.
>
>Thanks.
>Derek
***
TONY Nascimento
*****************
"Your mind is like a parachute. It only works if it is open" - Anthony J. D'Angelo
"The desire to know is natural to good men" - Leonardo da Vinci