Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Add date - script

Raaghuik
Level 2
Level 2

Hi,

I want to add 10 days to the current date in the delivery, please help me with this

//I will get current date with this script below & need to add 10 days to it (current date + 10 days)

<%= formatDate(new Date(), "%2D %2B %4Y")%>

Regards,

Raaghu

1 Accepted Solution
ramon_bisswanger
Correct answer by
Employee
Employee

It should work with following code

<%  var date = new Date(); date.setDate(date.getDate() + 10); %><%= formatDate(date, "%2D %2B %4Y")%>

View solution in original post

2 Replies
ramon_bisswanger
Correct answer by
Employee
Employee

It should work with following code

<%  var date = new Date(); date.setDate(date.getDate() + 10); %><%= formatDate(date, "%2D %2B %4Y")%>

View solution in original post

Raaghuik
Level 2
Level 2

Hi Ramon,

It worked thanks.

Regards,

Raaghu