ODell Posted July 20, 2009 Posted July 20, 2009 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.
Frog Posted July 20, 2009 Posted July 20, 2009 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()))
ODell Posted July 20, 2009 Author Posted July 20, 2009 Frog, Thanks for the help, saves me from creating VBS script to output it to afile and then read in the value.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now