title: Angular2+ How to display milliseconds from date?
body: <p>I was using a custom pipe for displaying time, and now I tried to change it so that I could also display milliseconds:</p>
  
  <pre><code>{{log.LogDate|jsonDate|date:'dd.MM.yyyy &amp;nbsp; HH:mm:ss.sss'}}
  </code></pre>
  
  <p>The pipe itself:</p>
  
  <pre><code>if (typeof (value) === 'string') {
          if (value.includes('/Date('))
              return  new Date(parseInt(value.substr(6)));
      }
      return value;
  </code></pre>
  
  <p>However, milliseconds have the value of seconds:</p>
  
  <blockquote>
    <p>log.LogDate: 2017-05-08T15:45:38.2527293+
    02:00 </p>
    
    <p>Output from pipe: 08.05.2017   15:45:38.38  </p>
    
    <p>Full jsonDate pipe(no format): 2017-05-08T15:45:38.2527293+02:00</p>
  </blockquote>
  
  <p>I am new to Javascript, and I am not sure if this is an Javascript or an Angular issue, however, I would like it to work inside Angular.
  Is it possible to do this using pipes, or is there another/better way to do this?</p>