Jump to content

Recommended Posts

Posted

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.

Posted

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()))

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
×
×
  • Create New...