title: How to calculate total days between now and a declared day in Angular?
body: <p>Hello I would like to compare a day with the current date and get the total days.</p>
  
  <p>If the total day is greater than 50 than set "fiffty".</p>
  
  <p>I think the last part is easy but i cant get the solution for get the total days and compare them.</p>
  
  <p>is there a function like this?</p>
  
  <pre><code>&lt;td&gt;&lt;div *ngIf="todo.anyDate&gt;-dateNow()&gt;50"&gt;fiffty&lt;/div&gt; &lt;/td&gt;
  </code></pre>
  
  <p>Thanks for helping</p>