title: Finding date by subtracting X number of days from a particular date in Javascript
body: <p>I want to find date by subtracting  X number of days from a particular date in JavaScript. My JavaScript function accepts 2 parameters. One is the date value and the other is the number of days that needs to be subtracted.</p>
  
  <p>For example,  I pass my argument date as 27 July 2009   and i pass my other argument as 3. So i want to calculate the date 3 days before 27 July 2009. So the resultant date that we should get is 24 July 2009. How is this possible in JavaScript. Thanks for any help.</p>