title: Javascript convert timezone Z to +0000 with moment
body: <p>The backend API I am working with only understands timezone in +0000 format. </p>
  
  <p>I currently I get a date in the current format:</p>
  
  <p>"2017-12-20T16:39:31.000Z"</p>
  
  <p>With moment.js how would I get it in the following string format? </p>
  
  <p>2017-12-20T16:39:31+0000</p>
  
  <p>So far I have done:</p>
  
  <pre><code>var date = new Date();
  this.lastCheckedDate = moment(date).toISOString();
  </code></pre>