Add days to date on page load

I want to add days (say 15 days) to a date in input box having type text.
Text Box 1 on page load
Shows todays Date (dd/mm/yyyy) - [[Now.toISOString().substr(8,2)]]/[[Now.toISOString().substr(5,2)]]/[[Now.toISOString().substr(0,4)]]

Now I want to show
Text Box 2 on page Load (dd/mm/yyyy) -

Please help me to get this future date


If your local date format is dd/mm/yyyy, then can use this one below

text box 1

text box 2

you can find all the available functions here

1 Like

Hi Steven,

Thanks very much it worked, need just one more help… [[Now.addDays(15).toLocaleDateString()]] this shows the date in mm/dd/yyyy format. How to convert it in dd/mm/yyyy format?

so it looks it doesn’t work with your local date format, then would need to tweak a bit

text box 1

text box 2

Yes !!! It worked. Thanks a lot. :slight_smile:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.