title: Date difference in hours - Angular 2
body: <p>How can I get difference in hours between two dates in angular2? I don't want to use external libs like <code>moment.js</code>. </p>
  
  <p>Having, for example: <em>incidentTime = '2017-03-05 11:26:16 AM'</em> and <em>creationTime = '2017-03-06 12:26:16 AM'</em></p>
  
  <pre class="lang-ts prettyprint-override"><code>let time = +params.data.incidentTime - +params.data.creationTime;  
  console.log("time: " + time);
  </code></pre>
  
  <p>It should return 25 hours, but It returns <code>NaN</code>.</p>