Link to home
Start Free TrialLog in
Avatar of dvplayltd
dvplayltdFlag for Bulgaria

asked on

How to get date from OAdate?

  Hi experts!

  Im using C# 2008. I have 1 date in format OLE automation (double). I need to transfer it back to normal date.
Look code:
single dtDOuble = Convert.ToSingle(dt.ToOADate()) -2;

Now I need code for
DateTime dtNormal=  ConvertOADateToNormal( dtDouble)

other. Can I use double instead of single ? For more precize
What to use in place of function ConvertOADateToNormal ?

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Melih SARICA
Melih SARICA
Flag of Türkiye image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial