Date calculation
DateToDate$ and DateBetween functions can be used for Date calculation. Below are two examples.
You can find the corresponding script file under Script_Examples, sub-directory of scripts.
'This script shows how to get the date for the day after the specified date
'function which returns the date+1 after the specified date
function day_after$(date_cur$)
local a$
a$=DatetoDate$("d", 1, date_cur$)
day_after$=a$
endfunction
'Function call example to get the date of tomorrow
next_day$=day_after$(date$())
msgbox(next_day$)
Get the date for 10 days before today
date_10_before$=DatetoDate$("d", -10, date$())
msgbox(date_10_before$)