Date as default value in Global variable

Hi, is it possible to create a default value in date format.
I need to make base date like 01/01/2020 in global variables and base on it in some places adding days, months etc.

for example create global variable: base_date: 01/01/2020, and use by setting text [[ base_date.addDays(30) ]]

thnx

You can set any kind of default value for a global variable. You cannot create global variables dynamically or programmatically–only manually in the RP editor.

If you want to represent a base date, I recommend using the “computer timecode” (elapsed milliseconds since the “beginning of computer time” (Unix Epoch)–arbitrarily set as 1/1/1970, 0:00:00.) Or, you can convert a human readable format (like “01/01/2020”) into this timecode, apply your math, then convert it back to timecode format. This makes it much easier to apply “date math” like adding/subtracting days, months, etc.

Here are some methods and examples of doing this:
https://forum.axure.com/search?q=add%20days

Axure reference for global variables:

Axure reference for getTime() and other date functions: