DateTime compatibility methods

berndgoedecke

Active Member
Licensed User
Is it possible to iintegrate DateTime compatibility methods like in VB.Net.
There is the .ToOADate()- and the .FromOADate()-Method to convert from Ticks to a Double formated Date and the reversal.

Best regards

berndgoedecke
 

Cableguy

Expert
Licensed User
I believe that's already( as it always was) possile using DATEParse, wich converts adate to the tick, and DATE wich converts o a date a numbe of ticks, formated by the DATEFORMAT....
 

agraham

Expert
Licensed User
isn't it faster to use the VB.Net methods, implemented in a dll ??
It might seem surprising but probably not in an optimised compiled app, especially for FromOADate() which is one multiply and one add. There is the overhead of a library call and a further call in the library to the .NET functions and the variables need the same processing whether they are passed to a library or merely prepared for B4ppc computation.
 
Top