title: How to calculate relative date from now in only days using momentjs?
body: <p>I am trying to get the amount of days relative to the current time, returning only days as units. So if something happened a week ago, it would say 7 days. If it happened 2 months ago, it would return that time in days as well.</p>
  
  <p>I am aware of how to get there but I am having trouble putting the pieces together.</p>
  
  <p>I have my days as a data attribute "data-order" so data-order="2019-4-2 00:00" or "2019-4-2" if it makes calculations easier.</p>
  
  <pre><code>$(".pop-cal").each(function (i, obj) {
      moment.relativeTimeThreshold("m", 1);
      moment.relativeTimeThreshold("d", 25 * 100);
  
      var date = $(this).attr("data-order");
      var momentDate = moment(date).fromNow();
  
      $(this).attr("data-content", momentDate);
  });
  </code></pre>
  
  <p>This is getting me dates, but they are always off.</p>
  
  <p>My expected results would be similar confirmation to using google search and saying "58 days ago" and getting Tuesday February 12th 2019.</p>
  
  <p>What I am currently getting as result are "59 days ago" on a moment time created on "2019-2-12.</p>