const d = new Date(); d.setFullYear(d.getFullYear()-1); console.log(d.toDateString()); // "Fri Oct 04 2019"