JavaScript Nouvelle date il y a 30 jours

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

Singh99