On Mar 21, 10:35 am, Marco van de Voort <mar...@[EMAIL PROTECTED]
> wrote:
> On 2007-03-21, mljdth <mlj...@[EMAIL PROTECTED]
> wrote:
>
>
>
> > I'm trying to extract data from a file generated by an old Turbo
> > Pascal program. (Not sure which version exactly)..
> > Using a hex editor, I have determined that the dates are 2 bytes in
> > length.. Some examples are:
>
> > EA40 = 59968 = 7/1/06
> > EB40 = 60224 = 7/2/06
> > 5E41 = 24129 = 10/25/06
> > 7241 = 29429 = 11/14/06
>
> > I cannot determine how the dates are encoded.. Any suggestions?
>
> They are written as a word, so your notation is byteswapped. It is
probably
> $40EA,$40EB,$415E,$4172 etc.
>
> And that looks awfully like simply days after a date (1/1/1960 or maybe
the
> authors birthday).
Thank you Marco! That helped me immensely


|