Shifting time by variable parameter


#1

I want to create a formtext field where I specify a number, and then shift time or date by that parameter.

Here's how I've tried to do it (and failed):

{ formtext: name=offset; default=1 }
{ time:MM; shift=+&offset&M }


#2

You would do something like:

Shift: {formtext: name=offset; default=1}
Shifted month: {time:MM; shift=+{=offset}M}

The "&" operator to concatenate strings is only valid within an equation ({=}).


#3

Thanks for the help! Sorted :slight_smile: