Converting a DateTime() to a Double?!

  • Thread starter Thread starter chris-s
  • Start date Start date
C

chris-s

I'm converting some old eVB code, argh!, and have a requirement to
convert a datetime value into a double in order for them to retain
some database compatibility.

The old eVB code simply did "CDbl(Now())", any suggestions on how to
obtain the same result in .Net?

Cheers

Chris
 
What are the semantics of the result? Number of seconds since XYZ?
Something else? DateTime has a bunch of different ToXYZ() methods. Take a
look at ToOADate(). Something like DateTime.Now.ToOADate().

Paul T.
 
Back
Top