title: from Date I just want to subtract 1 day in javascript/angularjs
body: <p>with the help of new Date() how i can achieve this.
  my code :</p>
  
  <pre><code>var temp =new Date("October 13, 2014 22:34:17");
  console.log(new Date(temp-1));
  </code></pre>
  
  <p>requirement:</p>
  
  <pre><code>before: Aug 4, 2014 11:59pm (EDT)
  after:   Aug 3, 2014 11:59pm (EDT)
  </code></pre>