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

Add date - script

Avatar

Avatar
Validate 1
Level 2
Raaghuik
Level 2

Likes

8 likes

Total Posts

21 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 2
Raaghuik
Level 2

Likes

8 likes

Total Posts

21 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
View profile
Raaghuik
Level 2

08-03-2019

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Give Back 5
Employee
ramon_bisswange
Employee

Likes

242 likes

Total Posts

353 posts

Correct Reply

182 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 25
Give Back 10
Give Back
View profile

Avatar
Give Back 5
Employee
ramon_bisswange
Employee

Likes

242 likes

Total Posts

353 posts

Correct Reply

182 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 25
Give Back 10
Give Back
View profile
ramon_bisswange
Employee

08-03-2019

It should work with following code

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

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1
Level 2
Raaghuik
Level 2

Likes

8 likes

Total Posts

21 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 2
Raaghuik
Level 2

Likes

8 likes

Total Posts

21 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
View profile
Raaghuik
Level 2

08-03-2019

Hi Ramon,

It worked thanks.

Regards,

Raaghu