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,351
  • 1
  • 14
  • 15

1 Answers1

2

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