I have a number-to-date conversion problem similar to
How to convert a double value to a DateTime in c#?
The timedate information I have is pulled as an 8-byte long from a UDP datastream. This is encoded as a double from a TDateTime object in Borland C++, which has compatibility with COM datetime.
I'm decoding this datastream in visual studio C#, and any casting to a DateTime object is coming up with strange dates.
I thought DateTime.FromBinary() might do the trick but this does not decode the time/date correctly either.
The hex values for now() are widely different between the two systems:
Borland: 0x 40E4A17C20782C71
C# : 0x 8E6EA19D6CB5D288
These values were taken a few seconds from each other but are clearly different.
If anyone has any suggestions on how to convert this I would appreciate it!