Subtrair Dataas JavaScript Frontend

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