JavaScript Tanggal Baru 30 hari yang lalu

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

Singh99