Convert a string containing a 32-bit binary date to a date data type

  • Thread starter Thread starter Remi Caron
  • Start date Start date
R

Remi Caron

Hi,

I took over an Visual Object project (Visual Clipper) in that language there
is a function to: Convert a string containing a 32-bit binary date to a date
data type. That function is called bin2Date and there also is a Date2bin
function of course in cannot find how to do this in csharp. The string looks
like this "!$%\0" and should return 03/09/52 can somebody point me in the
right direction? Have tried Convert class in several ways but without any
luck.

Kind regards,
 
Hi,

You have to know how clipper keeps its data format, probably some sort of
ticks counts from somewhere in time, without this there is nothing you can
do.

cheers,
 
Assuming access to clipper just call it's bin2Date for zero. That should
give the zero date. You can get the tick value by using Date2Bin on two
dates a day apart and see how much the binary values change by.

-- Kevin

Ignacio Machin ( .NET/ C# MVP ) said:
Hi,

You have to know how clipper keeps its data format, probably some sort of
ticks counts from somewhere in time, without this there is nothing you can
do.

cheers,
 
Back
Top