title: How do i change date format to display month and year only using moment js
body: <p>I would like to change this date time format using momentjs</p>
  
  <pre><code>2017-02-01T00:00:00.000Z
  </code></pre>
  
  <p>to</p>
  
  <pre><code>02-2017 ( month-year )
  </code></pre>
  
  <p>How to change this date format to get month-year only using momentjs?</p>
  
  <p>I have tried like this:</p>
  
  <pre><code>var MnthYr = moment(2017-02-01T00:00:00.000Z).format("MM-YYYY");
  </code></pre>
  
  <p>but I didn't get exact answer</p>