title: Get the previous date from today's date in javascript
body: <p>I want to plot a graph by fetching the previous seven days using the present day in Javascript. </p>
  
  <p>Which should pass through the tests of Leap year, days of mont(30/31), Year change.</p>
  
  <p>Thank you in advance.</p>