Get date time in specific format in moment js
<p>I am trying to get the date time in moment js in this format :</p>

<pre><code>2016-12-19T09:43:45.672Z
</code></pre>

<p>The problem is I am able to get the time format as </p>

<pre><code>2016-12-19T15:04:09+05:30
</code></pre>

<p>using </p>

<pre><code>moment().format();
</code></pre>

<p>but I need the format as the first one [like .672Z instead of +05:30]. Any suggestions would be of great help.</p>