Subtrair -Daten JavaScript Frontend

 var d = new Date();
 d.setDate(d.getDate()-5);
DevPedrada