-3

Please help me.....

On the web there is only tommorows date not day afters. I am not able to get the date.

  • This is a duplicate question, Please check here the [question](https://stackoverflow.com/questions/3674539/incrementing-a-date-in-javascript) – Utsav Upadhyay Feb 26 '22 at 07:00
  • "On the web there is only tommorows date" what does this even mean? the web knows all the dates of the future) . You add two days to the current date ... `date = new Date; date.setDate(date.getDate() + 2)` – Bravo Feb 26 '22 at 07:00

1 Answers1

0

Like @Bravo already mentioned:

const d=new Date();
d.setDate(d.getDate()+2);
console.log(d.toLocaleString("en-uk").slice(0,10))
Carsten Massmann
  • 26,510
  • 2
  • 22
  • 43