Permanent Date Variable?

Hello,

Originally with my scripts I would start with setting an integer variable with a default value of zero and using the Get DateTime action to change that variable to the date format that I needed (yymmdd) so that I could name folders with today's date.  I realized that there is a DateTime variable type that can be set, so I changed the "format string" entry to yymmdd.  Unfortunately, this seems to make it think its 12-30-1999 no matter what I do.  Is there a way to fix this or is there another way to get a permanent date variable with this formatting so that I don't have to use an action to get today's date?

Thank you,

Dan

Hi Dan

This is happening because in Automise the DateTime variable is stored as a Delphi TDateTime data type. The TDateTime data type is stored as a double with a value of the number of days since 30 Dec 1899. If the default value for your DateTime variable is set to 0 then it will always output this date.

Unfortunately at this stage there is no way get the current date without using an action, this something we are looking into for future versions of Automise.

Regards,
Steve