Shifting time by variable parameter

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 }

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 ({=}).

1 Like

Thanks for the help! Sorted :slight_smile: