title: How to output date in javascript in ISO 8601 without milliseconds and with Z
body: <p>Here is a standard way to serialise date as ISO 8601 string in JavaScript:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var now = new Date();
  console.log( now.toISOString() );
  // outputs '2015-12-02T21:45:22.279Z'</code></pre>
  </div>
  </div>
  </p>
  <p>I need just the same output, but without milliseconds. How can I output <code>2015-12-02T21:45:22Z</code> ? </p>