title: How can I get moment to display "yesterday" and not "a day ago"?
body: <p>I have the following code, which is used to find the humanized time difference between two dates, the problem is that I don't want to have 'a day ago', but show 'yesterday'.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function humanize(date) {
    const then = moment.utc(date); 
    
    return then.fromNow();
  }
  
  function getYesterdayAsISO() {
      var date = new Date();
      date.setDate(date.getDate()-1);
      return date.toISOString();
  }
  
  console.log(humanize(getYesterdayAsISO()));</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://momentjs.com/downloads/moment-with-locales.min.js"&gt;&lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>