0

I have this variable

var qStartday = '2017-02-22T22:00,

How i can get curent date and i add one month to my automated script?

jason0x43
  • 3,363
  • 1
  • 16
  • 15

1 Answers1

2

var d = new Date('2017-02-22T22:00');
d.setMonth(d.getMonth()+1)
console.log(d);
Vladu Ionut
  • 8,075
  • 1
  • 19
  • 30