add dynamic days to currentDateTime

0
Hej Mendixer! :)   Is it possible to add to CurrentDateTime, dynamic days ?  like addDays([%CurrentDateTime%],+ $Days)   ?   The User sets in a Textbox an integer for:  “How long you will need to produce it?”  I want to add this Integervalue to the CurrentDateTime.     thankful for advices :) best regards!
asked
1 answers
3

Yes. But without the ‘+’ sign.

addDays([%CurrentDateTime%],$Days)

Make sure that $Days has a value, otherwise you will run into an error.

$Days can also be negative. If $Days is -1 the outcome will be yesterday.

answered