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 i
Simply:
yourDate.setDate(yourDate.getDate() - daysToSubtract);