how to get month from date in javascript? : <p>I'm trying to get month from my date variable.</p>

<pre><code>date=Date.now();

console.log(date); 
&gt;&gt;2019-12-04T08:55:48.972Z
</code></pre>

<p>I want to get the month from this date but when I'm using getMonth(), I'm getting error.</p>

<pre><code>console.log(date.getMonth());
error:- getMonth is not a function
</code></pre>
