Converting datetime to double

  • Thread starter Thread starter John Dann
  • Start date Start date
J

John Dann

I need to convert some datetime data currently stored in .Net DateTime
type to the older double style (for compatibility with a legacy
control). Is there an intrinsic function to do this or, if not, could
someone please enlighten me as to the algorithm that would be needed
to code the conversion explicitly.

TIA
John Dann
 
Hi,

Take a look at the datetime ToOADate method.

http://msdn.microsoft.com/library/d...tml/frlrfSystemDateTimeClassToOADateTopic.asp

Ken
------------------
I need to convert some datetime data currently stored in .Net DateTime
type to the older double style (for compatibility with a legacy
control). Is there an intrinsic function to do this or, if not, could
someone please enlighten me as to the algorithm that would be needed
to code the conversion explicitly.

TIA
John Dann
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top