I'm trying to get month from my date variable.
date=Date.now();
console.log(date);
>>2019-12-04T08:55:48.972Z
I want to get the month from this date but when I'm using getMonth(), I'm getting error.
console.log(date.getMonth());
error:- getMonth is not a function