Change date +1 suggestions (Get tomorrows date)

Hello,

I was looking for an item that gives a date +1, and i found Populate Date or Date + 1, but this is not working.
I have a column with a starte date 13-07-19 tha will be filled in with a type command, now i want the end date of the day +1, so 14-07-19
Any suggestions?

From here: https://ui.vision/docs/selenium-ide/executescript

var d= new Date(new Date().getTime() + 24 * 60 * 60 * 1000 * 5); var m=((d.getMonth()+1) < 10)?'0'+(d.getMonth()+1):(d.getMonth()+1); m=d.getFullYear()+"-"+m+"-"+d.getDate(); return m

(Change the 24 * 60 * 60 * 1000 * 5 to 24 * 60 * 60 * 1000 * 1 for tomorrows date)

Macro:

{
  "Name": "date1",
  "CreationDate": "2019-6-17",
  "Commands": [
    {
      "Command": "open",
      "Target": "https://ui.vision/demo/executescript",
      "Value": ""
    },
    {
      "Command": "executeScript_Sandbox",
      "Target": "var d= new Date(new Date().getTime() + 24 * 60 * 60 * 1000 * 5); var m=((d.getMonth()+1) <10)?'0'+(d.getMonth()+1):(d.getMonth()+1); m=d.getFullYear()+\"-\"+m+\"-\"+d.getDate(); return m",
      "Value": "var1"
    },
    {
      "Command": "type",
      "Target": "id=sometext",
      "Value": "In five days is ${var1}"
    }
  ]
}

Hi Ulrich,

Thanks for the reply, it works.
I only changed the d.FullYear()+"-"+m+"-"+d.getDate to m=d.getDate()+"-"+m+"-"+d.getFullYear, because of the european time notation.