Add date - script | Community
Skip to main content
Level 2
Mar 8, 2019 12:06 PM UTC
Solved

Add date - script

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
bisswangAccepted solution
Employee
Mar 8, 2019 12:23 PM UTC

It should work with following code

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

2 replies

RaaghuikAuthor
Level 2
Mar 8, 2019 1:02 PM UTC

Hi Ramon,

It worked thanks.

Regards,

Raaghu

Translate
bisswangAccepted solution
Employee
Mar 8, 2019 12:23 PM UTC

It should work with following code

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

Translate