Log in
Log into community
Share feedback, ideas and get community help
View all posts
Related posts
Did this answer your question?
๐
๐
๐
Powered by
Hall
Inactive
Updated 3 months ago
0
Follow
Adding days to System.Now
Adding days to System.Now
Inactive
0
Follow
T
T.
last year
ยท
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
T
L
J
4 comments
Share
Open in Discord
T
T.
last year
I was checking this page but nothing worked for me:
https://docs.typebot.io/editor/blocks/logic/set-variable#expressions-with-existing-variables
L
LuizAlves
last year
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.
last year
Found a solution!
Attachment
J
JM
12 months ago
This is useful to know. Thanks!
Add a reply
Sign up and join the conversation on Discord
Join on Discord