let date = new Date("2017-09-12T12:00:00");
console.log(date.getUTCMonth());
Here I am expecting it would log 09 for a month but it's logging 08. Year, day , hour and minute gets parsed correctly though. what's going on here? How can I extract 09 from the above date string?