T
Typebot17mo ago
T.

Adding days to System.Now

Hi all, how do I add the number of days to a variable? Let's say I set a variable "Today" = System.Now, and I want to get a variable "5DaysLater" = Today + days. How do I do that?
No description
4 Replies
T.
T.OP17mo ago
Set variable | Typebot docs
The "Set variable" block allows you to set a particular value to a variable.
LuizAlves
LuizAlves17mo ago
You can use set varialble block and create a function such as function addDays(date, days) { var result = new Date(date); result.setDate(result.getDate() + days); return result; } and adapt it to your case
T.
T.OP17mo ago
Found a solution!
No description
JM
JM16mo ago
This is useful to know. Thanks!

Did you find this page helpful?