title: How to get yesterday date in node.js backend?
body: <p>I am using <strong>date-format</strong> package in node back end and I can get today date using</p>
  
  <pre><code>var today = dateFormat(new Date());
  </code></pre>
  
  <p>In the same or some other way I want yesterday date. Still I did't get any proper method. For the time being I am calculating yesterday date manually with lot of code. Is there any other method other then writing manually ?</p>