title: Getting current date in Angular4
body: <p>I have made input text boxes that select calendar and time using  </p>
  
  <p><code>[(ngModel)]="toDateTransaction" useValueAsDate</code> . </p>
  
  <p>Now I want to compare the selected date with current date (today's date). How to get that. I used</p>
  
  <pre><code>let currentDate = Date.now(); 
  </code></pre>
  
  <p>But its giving wierd output. I want to use in angular4 and node.js</p>