Use Moment to get month of Date object : <p>I'm sure this is a simple thing but I haven't been able to find the specific syntax in any of the documentation or in any related posts. </p>

<p>In order to get a month-picker to work i need to instantiate a new <code>Date</code> object when my controller initializes. </p>

<p><strong>Controller</strong></p>

<pre><code>scope.date = new Date();
</code></pre>

<p>This creates a date object with the following format: </p>

<blockquote>
  <p>Mon Feb 01 2016 15:21:43 GMT-0500 (Eastern Standard Time)</p>
</blockquote>

<p>However when I attempt to pull the month from the date object, using moment, I get the error: </p>

<blockquote>
  <p>enter code here</p>
</blockquote>

<p><strong>getMonth method</strong></p>

<pre><code>var month = moment().month(scope.date, "ddd MMM DD YYYY");
</code></pre>

<p>Any idea how to pull the month from the above date object without using substring?</p>
