By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,552 Members | 927 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,552 IT Pros & Developers. It's quick & easy.

System Time to "Variant Time" - method in Active-X control expects Double...

P: n/a

I have an active-X control (ATl/C++) that expects a date as Variant Time (a
double). How can I convert a date in VB.NET into such a double?

Any help would be much appreciated.

thanks.
Nov 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"Robin Tucker" <id*************************@reallyidont.com> schrieb

I have an active-X control (ATl/C++) that expects a date as Variant
Time (a double). How can I convert a date in VB.NET into such a
double?


Call the date's ToOADate function returning the _O_le _A_utomation Date as a
double value.
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #2

P: n/a
Thanks, much appreciated.

"Armin Zingler" <az*******@freenet.de> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
"Robin Tucker" <id*************************@reallyidont.com> schrieb

I have an active-X control (ATl/C++) that expects a date as Variant
Time (a double). How can I convert a date in VB.NET into such a
double?
Call the date's ToOADate function returning the _O_le _A_utomation Date as

a double value.
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.