Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting long integer into date
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Converting long integer into date
Miscellaneous
Thread ID:
01054948
Message ID:
01054948
Views:
68
Hi all,

I have a problem convertin data read from a binary file. I have to import these data into a DBF.

Data in the source file where stored by an old DOS based application (may be Pascal or Basic) I know the structure of this file but I have some trouble converting numeric data.

For exemple Date are stored in YYYYMMDD format, as a long (4 bytes)

Exemple :
ASC(byte1) = 56
ASC(byte2) = 203
ASC(byte3) = 49
ASC(byte4) = 1

This should be converted to a date.... but HOW ??????

Thanks for any answer
Next
Reply
Map
View

Click here to load this message in the networking platform