Sign in to follow this  
Followers 0
ODell

Convert date to double

4 posts in this topic

I need to convert a date to a double. For example if I have the date 07/20/2009 the date as a double would be 40014. I have searched the forum and the help files but can not find anything that would help. In C I could use the CDbl function to convert it. Any help would be appreciated. Thanks.

Share this post


Link to post
Share on other sites



Dates converted to double are just a date calculation using December 30, 1899 as the base. Example:

#include <date.au3>

Msgbox(0,"Blah",_DateDiff("d","1899/12/30 00:00:00",_NowCalc()))

Share this post


Link to post
Share on other sites

Frog,

Thanks for the help, saves me from creating VBS script to output it to afile and then read in the value.

Share this post


Link to post
Share on other sites

No problem, happy to help.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0