04-07-2012, 04:41 AM
Macro Macro1707
or
Macro Macro1708
DateTime x
str s
int year
x.FromComputerTime ;;get today's date time
x.AddParts(1) ;;add 1 day
s=x.ToStr ;;convert to string
;s=x.ToStr(1) ;;without time part
out s
x.GetParts(year) ;;get year
out year
or
Macro Macro1708