title: compare dates using momentjs
body: <p>I have a date timestamp stored in mysql which is like <code>2017-06-29 08:37:31</code></p>
  
  <p>I am getting it through AJAX and I want to compare it with current date, whether it is same or not.</p>
  
  <p>My code is</p>
  
  <pre><code>let dateStamp = moment(this.notificationData[0].notification_timestamp).format('LL');//date/timestamp from mysql received in json
  let dateToday = moment().format('LL');//current date
  console.log(dateStamp,dateToday)                            
  console.log(moment(dateToday).diff(dateStamp,'days'))//comparison
  </code></pre>
  
  <p>Though I am getting the result in .diff(). I want to know if there is any other correct way of doing this.</p>
  
  <p>Timezone is not an issue I think for me. Just date comparison.</p>
  
  <p>Thanks</p>