Share feedback, ideas and get community help

Updated 3 months ago

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?
Attachment
image.png
T
L
J
4 comments
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
Found a solution!
Attachment
image.png
This is useful to know. Thanks!
Add a reply
Sign up and join the conversation on Discord