JavaScript Новая дата 30 дней назад

 
let now = new Date();
const backdate = new Date(now.setDate(now.getDate() - 30));

Singh99