PC Review


Reply
Thread Tools Rate Thread

Converting datetime to double

 
 
John Dann
Guest
Posts: n/a
 
      4th Aug 2004
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
 
Reply With Quote
 
 
 
 
Ken Tucker [MVP]
Guest
Posts: n/a
 
      4th Aug 2004
Hi,

Take a look at the datetime ToOADate method.

http://msdn.microsoft.com/library/de...ADateTopic.asp

Ken
------------------
"John Dann" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
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


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting a DateTime() to a Double?! chris-s@mailcity.com Microsoft Dot NET Compact Framework 1 23rd Mar 2007 05:48 PM
Converting a Double to DateTime Ollie Microsoft C# .NET 20 23rd Jun 2004 05:01 PM
converting Unix datetime count to .Net DateTime object Mark Worrall Microsoft Dot NET Framework 2 13th Feb 2004 05:52 PM
Re: converting Unix datetime count to .Net DateTime object Mark Worrall Microsoft C# .NET 1 4th Feb 2004 07:29 AM
converting Unix datetime count to .Net DateTime object Mark Worrall Microsoft Dot NET 1 4th Feb 2004 06:54 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:34 AM.